#include <log.hpp>
|
| Log ()=default |
|
| Log (Trace &&trace, std::string &&message, std::uint32_t max_message_size) noexcept |
|
| Log (Log &&log) noexcept |
|
Log & | operator= (Log &&log) noexcept |
|
|
std::uintmax_t | m_index {0} |
|
Level | m_level {Level::NumLevels} |
|
Trace | m_trace {} |
|
double | m_time {-1.0} |
|
std::string | m_message |
|
|
std::ostream & | operator<< (std::ostream &stream, const Log &log) |
|
Struct to store data about single log. A log contains:
- The monotonically increasing index of the log.
- The log level.
- The time the log was made.
- Trace information about the log point (file name, function name, line number).
- The message being logged.
- Author
- Timothy Flynn (trfly.nosp@m.nn89.nosp@m.@pm.m.nosp@m.e)
- Version
- July 18, 2016
◆ Log() [1/3]
fly::logger::Log::Log |
( |
| ) |
|
|
default |
◆ Log() [2/3]
fly::logger::Log::Log |
( |
Trace && |
trace, |
|
|
std::string && |
message, |
|
|
std::uint32_t |
max_message_size |
|
) |
| |
|
noexcept |
Constructor. Initialize with a message.
- Parameters
-
trace | The trace information for the log point. |
config | Reference to the logger config. |
message | Message to store. |
◆ Log() [3/3]
fly::logger::Log::Log |
( |
Log && |
log | ) |
|
|
noexcept |
◆ operator=()
Log & fly::logger::Log::operator= |
( |
Log && |
log | ) |
|
|
noexcept |
Move assignment operator.
The documentation for this struct was generated from the following files:
- fly/logger/log.hpp
- fly/logger/log.cpp