BubbleProfiler
0.3.0
by Peter Athron, Csaba Balazs, Michael Bardsley, Andrew Fowlie, Dylan Harries & Graham White
|
#include <logging_manager.hpp>
Public Member Functions | |
Logging_manager (const Logging_manager &)=delete | |
Logging_manager (Logging_manager &&)=delete | |
Logging_manager & | operator= (const Logging_manager &)=delete |
Logging_manager & | operator= (Logging_manager &&)=delete |
void | set_logging_enabled (bool flag) |
void | set_minimum_log_level (Log_level level) |
void | log (const Log_message &message) |
Static Public Member Functions | |
static Logging_manager & | get_manager () |
Protected Member Functions | |
Logging_manager ()=default | |
~Logging_manager ()=default | |
Private Member Functions | |
bool | above_min_level (Log_level) const |
Private Attributes | |
bool | logging_enabled {true} |
Log_level | min_level {Log_level::Warning} |
Definition at line 27 of file logging_manager.hpp.
|
delete |
|
delete |
|
protecteddefault |
Referenced by set_minimum_log_level().
|
protecteddefault |
Referenced by set_minimum_log_level().
|
private |
Definition at line 34 of file logging_manager.cpp.
References BubbleProfiler::logging::Debug, BubbleProfiler::logging::Error, BubbleProfiler::logging::Fatal, BubbleProfiler::logging::Info, min_level, BubbleProfiler::logging::Trace, and BubbleProfiler::logging::Warning.
Referenced by log().
|
static |
Definition at line 27 of file logging_manager.cpp.
Referenced by BubbleProfiler::configure_logging(), BubbleProfiler::logging::Basic_logger::log_message(), and main().
void BubbleProfiler::logging::Logging_manager::log | ( | const Log_message & | message | ) |
Definition at line 83 of file logging_manager.cpp.
References above_min_level(), BubbleProfiler::logging::Log_message::get_log_entry(), BubbleProfiler::logging::Log_message::get_log_level(), and logging_enabled.
Referenced by BubbleProfiler::logging::Basic_logger::log_message(), and set_minimum_log_level().
|
delete |
|
delete |
|
inline |
Definition at line 36 of file logging_manager.hpp.
References logging_enabled.
|
inline |
Definition at line 37 of file logging_manager.hpp.
References log(), Logging_manager(), min_level, and ~Logging_manager().
Referenced by main().
|
private |
Definition at line 46 of file logging_manager.hpp.
Referenced by log(), and set_logging_enabled().
|
private |
Definition at line 47 of file logging_manager.hpp.
Referenced by above_min_level(), and set_minimum_log_level().