log_line: Represents a single message to be written to all sinks.
More...
#include <logger.h>
log_line: Represents a single message to be written to all sinks.
meta::logging::logger::log_line::log_line |
( |
logger & |
log, |
|
|
severity_level |
sev, |
|
|
size_t |
line, |
|
|
const std::string & |
file |
|
) |
| |
|
inline |
Constructs a new log line for the given logger.
- Parameters
-
log | The logger this message was created for |
sev | The severity of this message |
line | The line number for this message |
file | The file for this message |
Simulates a std::endl, but for log entries.
Flushes all internal streams and then writes the log_line to all sinks of the log object it was created with.
- Parameters
-
logline | The log line to be flushed to all sinks |
- Returns
- the log line given
Overloaded operator<<(), used to determine when a manipulator is sent to the log_line stream.
- Parameters
-
fn | A function pointer sent to the stream. |
- Returns
- the current log_line, for chaining
template<class T >
log_line& meta::logging::logger::log_line::operator<< |
( |
const T & |
to_write | ) |
|
|
inline |
Generic operator<<().
Simply writes the given data to the internal stream.
- Parameters
-
to_write | The data to be written. |
- Returns
- the current log_line, for chaining
std::string meta::logging::logger::log_line::str |
( |
| ) |
const |
|
inline |
Converts the internal stream to a string.
- Returns
- the string for this log_line
const std::string& meta::logging::logger::log_line::file |
( |
| ) |
const |
|
inline |
size_t meta::logging::logger::log_line::line |
( |
| ) |
const |
|
inline |
- Returns
- the line number for this log_line
The documentation for this class was generated from the following file:
- /home/chase/projects/meta/include/logging/logger.h