![]() |
LogIt++
|
Stores log metadata and content. More...
#include <LogRecord.hpp>
Public Member Functions | |
| LogRecord (LogLevel log_level, int64_t timestamp_ms, const std::string &file, int line, const std::string &function, const std::string &format, const std::string &arg_names, int logger_index, bool print_mode) | |
| Constructor with argument names. | |
Public Attributes | |
| const LogLevel | log_level |
| Log level (severity). | |
| const int64_t | timestamp_ms |
| Timestamp in milliseconds. | |
| const std::string | file |
| Source file name. | |
| const int | line |
| Line number in the source file. | |
| const std::string | function |
| Function name. | |
| const std::string | format |
| Format string for the message. | |
| const std::string | arg_names |
| Argument names for the log. | |
| std::vector< VariableValue > | args_array |
| Argument values for the log. | |
| std::thread::id | thread_id |
| ID of the logging thread. | |
| const int | logger_index |
| Logger index (-1 to log to all). | |
| const bool | print_mode |
| Flag to determine whether arguments are printed in a raw format without special symbols. | |
Stores log metadata and content.
Definition at line 17 of file LogRecord.hpp.
|
inline |
Constructor with argument names.
| log_level | Log severity level. |
| timestamp_ms | Timestamp in milliseconds. |
| file | Source file name. |
| line | Line number. |
| function | Function name. |
| format | Format string for the log. |
| arg_names | Names of the log arguments. |
| logger_index | Logger index (-1 for all loggers). |
| print_mode | Flag indicating if the log should print arguments in a raw format (true) or use formatted output (false). |
Definition at line 40 of file LogRecord.hpp.
| const std::string logit::LogRecord::arg_names |
Argument names for the log.
Definition at line 24 of file LogRecord.hpp.
| std::vector<VariableValue> logit::LogRecord::args_array |
Argument values for the log.
Definition at line 25 of file LogRecord.hpp.
| const std::string logit::LogRecord::file |
Source file name.
Definition at line 20 of file LogRecord.hpp.
| const std::string logit::LogRecord::format |
Format string for the message.
Definition at line 23 of file LogRecord.hpp.
| const std::string logit::LogRecord::function |
Function name.
Definition at line 22 of file LogRecord.hpp.
| const int logit::LogRecord::line |
Line number in the source file.
Definition at line 21 of file LogRecord.hpp.
| const LogLevel logit::LogRecord::log_level |
Log level (severity).
Definition at line 18 of file LogRecord.hpp.
| const int logit::LogRecord::logger_index |
Logger index (-1 to log to all).
Definition at line 27 of file LogRecord.hpp.
| const bool logit::LogRecord::print_mode |
Flag to determine whether arguments are printed in a raw format without special symbols.
Definition at line 28 of file LogRecord.hpp.
| std::thread::id logit::LogRecord::thread_id |
ID of the logging thread.
Definition at line 26 of file LogRecord.hpp.
| const int64_t logit::LogRecord::timestamp_ms |
Timestamp in milliseconds.
Definition at line 19 of file LogRecord.hpp.