#include <log.hpp>
Public Member Functions | |
log_in_progress (std::ostream &stream) | |
void | operator| (formatter &&message) |
void | set_indent (int level) |
void | enable_timestamp () |
void | set_prefix (const std::string &prefix) |
void | set_auto_newline (bool enabled) |
Private Attributes | |
std::ostream & | stream_ |
int | indent_ = 0 |
bool | timestamp_ = false |
std::string | prefix_ |
bool | auto_newline_ = true |
lg::log_in_progress::log_in_progress | ( | std::ostream & | stream | ) |
void lg::log_in_progress::enable_timestamp | ( | ) |
Definition at line 512 of file log.cpp.
References timestamp_.
Referenced by lg::logger::operator()().
void lg::log_in_progress::operator| | ( | formatter && | message | ) |
Definition at line 488 of file log.cpp.
References auto_newline_, chrono::format_local_timestamp(), i, indent, log_mutex, precise_timestamp, prefix_, lg::sanitize_log(), stream_, and timestamp_.
void lg::log_in_progress::set_auto_newline | ( | bool | enabled | ) |
Definition at line 520 of file log.cpp.
References auto_newline_.
Referenced by lg::logger::operator()().
void lg::log_in_progress::set_indent | ( | int | level | ) |
Definition at line 508 of file log.cpp.
References indent_, and game_config::images::level.
Referenced by lg::logger::operator()().
void lg::log_in_progress::set_prefix | ( | const std::string & | prefix | ) |
|
private |
Definition at line 197 of file log.hpp.
Referenced by operator|(), and set_auto_newline().
|
private |
Definition at line 194 of file log.hpp.
Referenced by set_indent().
|
private |
Definition at line 196 of file log.hpp.
Referenced by operator|(), and set_prefix().
|
private |
Definition at line 193 of file log.hpp.
Referenced by operator|().
|
private |
Definition at line 195 of file log.hpp.
Referenced by enable_timestamp(), and operator|().