|
| template<global_state_type Level, basic_fixed_string SourceFile, int SourceLine, basic_fixed_string Fmt, typename... Args> |
| tt_force_inline void | add (Args &&...args) noexcept |
| | Log a message.
|
| |
| tt_no_inline void | flush () noexcept |
| | Flush all messages from the log_queue directly from this thread.
|
| |
|
| static bool | start_subsystem (global_state_type log_level=global_state_type::log_level_default) |
| | Start the logger system.
|
| |
| static void | stop_subsystem () |
| | Stop the logger system.
|
| |
◆ add()
| tt_force_inline void tt::log::add |
( |
Args &&... | args | ) |
|
|
inlinenoexcept |
Log a message.
- Template Parameters
-
| Level | log level of message, must be greater or equal to the log level of the system_status. |
| SourceFile | The source file where this function was called. |
| SourceLine | The source line where this function was called. |
| Fmt | The format string. |
- Parameters
-
| timestamp | The timestamp when the message is logged. |
| args | Arguments to std::format. |
◆ flush()
| tt_no_inline void tt::log::flush |
( |
| ) |
|
|
noexcept |
Flush all messages from the log_queue directly from this thread.
Flushing includes writing the message to a log file or displaying them on the console.
◆ start_subsystem()
| static bool tt::log::start_subsystem |
( |
global_state_type | log_level = global_state_type::log_level_default | ) |
|
|
inlinestatic |
Start the logger system.
Initialize the logger system if it is not already initialized and while the system is not in shutdown-mode.
- Parameters
-
| log_level | The level at which to log. |
- Returns
- true if the logger system is initialized, false when the system is being shutdown.
◆ stop_subsystem()
| static void tt::log::stop_subsystem |
( |
| ) |
|
|
inlinestatic |
Stop the logger system.
De-initialize the logger system if it is initialized.
The documentation for this class was generated from the following file: