#include <string>
#include <utility>
Go to the source code of this file.
|
typedef void(* | entry_listener) (size_t index, const std::pair< LogMetaData, std::string > &entry, const std::string &formatted, const LogEntries &entries) |
| Entry listener for Logger, will be called as callback for each new entry in the logger with the given parameters. More...
|
|
◆ ATILACALCULATORSOFTWARE_COMMON_H
#define ATILACALCULATORSOFTWARE_COMMON_H |
◆ entry_listener
typedef void(* entry_listener) (size_t index, const std::pair< LogMetaData, std::string > &entry, const std::string &formatted, const LogEntries &entries) |
Entry listener for Logger, will be called as callback for each new entry in the logger with the given parameters.
- Parameters
-
index | The index of the new entry |
entry | A reference to the entry |
formatted | A reference to the formatted string message of the entry |
entries | The LogEntries object that contains all the entries |
◆ LogLevel
Logging level of a log entry, used to filter log entries, each filtering level will hide lower level entries.
Enumerator |
---|
Trace | |
Debug | |
Info | |
Warn | |
Error | |
Fatal | |
◆ LogTimeMode
Logging time mode, TimeUTC means use abo.
Enumerator |
---|
TimeLocal | |
TimeUTC | |