Mixin that takes care of formatting of a message.
More...
#include <logger.h>
|
static std::string | format (const log_level_t level, const time_t timestamp, const std::string &msg, const bool print_time_information) |
| Prefix each line in s with some extra information. The things that are added are:
|
|
static std::string | format (const log_level_t level, const time_t timestamp, const std::string &msg, const bool print_time_information) |
| Format msg,.
|
|
Mixin that takes care of formatting of a message.
In this case, the formatter
Definition at line 272 of file logger.h.
◆ caret_pos()
static std::atomic< std::size_t > & mcrl2::log::formatter::caret_pos |
( |
| ) |
|
|
inlinestaticprotected |
◆ format()
std::string mcrl2::log::formatter::format |
( |
const log_level_t |
level, |
|
|
const time_t |
timestamp, |
|
|
const std::string & |
msg, |
|
|
const bool |
print_time_information |
|
) |
| |
|
static |
Prefix each line in s with some extra information. The things that are added are:
- current time
- log level
- indentation
Definition at line 32 of file logger.cpp.
◆ last_caret_pos()
static std::atomic< std::size_t > & mcrl2::log::formatter::last_caret_pos |
( |
| ) |
|
|
inlinestaticprotected |
◆ last_message_ended_with_newline()
static std::atomic< bool > & mcrl2::log::formatter::last_message_ended_with_newline |
( |
| ) |
|
|
inlinestaticprotected |
Records whether the last message that was printed ended with a new line.
Definition at line 278 of file logger.h.
◆ last_message_was_status()
static std::atomic< bool > & mcrl2::log::formatter::last_message_was_status |
( |
| ) |
|
|
inlinestaticprotected |
The documentation for this class was generated from the following files: