Class Dune::XT::Common::TimedLogging¶
-
class Dune::XT::Common::TimedLogging¶
A logger that provides colored and prefixed streams.
Note
Most likely you do not want to use this class directly, but TimedLogger() instead.
-
static std::string Dune::XT::Common::TimedLogging::default_info_color()¶
No documentation provided.
-
static std::string Dune::XT::Common::TimedLogging::default_debug_color()¶
No documentation provided.
-
static std::string Dune::XT::Common::TimedLogging::default_warning_color()¶
No documentation provided.
-
void Dune::XT::Common::TimedLogging::create(const ssize_t max_info_level = default_max_info_level, const ssize_t max_debug_level = default_max_debug_level, const bool enable_warnings = default_enable_warnings, const bool enable_colors = default_enable_colors, const std::string &info_color = default_info_color(), const std::string &debug_color = default_debug_color(), const std::string &warning_color = default_warning_color())¶
sets the state
This method is mainly intended to be used on the global TimedLogger() instance. Before calling this method the state is set according to the defaults default_max_info_level, default_max_debug_level and default_enable_warnings.
Note
Calling this method more than once will throw an Exceptions::you_are_using_this_wrong, following the idea of least surprise.
-
TimedLogManager Dune::XT::Common::TimedLogging::get(const std::string &id)¶
No documentation provided.
-
void Dune::XT::Common::TimedLogging::update_colors()¶
No documentation provided.
-
Dune::XT::Common::TimedLogging::TimedLogging()¶
No documentation provided.
-
ssize_t Dune::XT::Common::TimedLogging::max_info_level_¶
No documentation provided.
-
ssize_t Dune::XT::Common::TimedLogging::max_debug_level_¶
No documentation provided.
-
bool Dune::XT::Common::TimedLogging::enable_warnings_¶
No documentation provided.
-
bool Dune::XT::Common::TimedLogging::enable_colors_¶
No documentation provided.
-
std::string Dune::XT::Common::TimedLogging::info_prefix_¶
No documentation provided.
-
std::string Dune::XT::Common::TimedLogging::debug_prefix_¶
No documentation provided.
-
std::string Dune::XT::Common::TimedLogging::warning_prefix_¶
No documentation provided.
-
std::string Dune::XT::Common::TimedLogging::info_suffix_¶
No documentation provided.
-
std::string Dune::XT::Common::TimedLogging::debug_suffix_¶
No documentation provided.
-
std::string Dune::XT::Common::TimedLogging::warning_suffix_¶
No documentation provided.
-
bool Dune::XT::Common::TimedLogging::created_¶
No documentation provided.
-
std::atomic<ssize_t> Dune::XT::Common::TimedLogging::current_level_¶
No documentation provided.
-
int Dune::XT::Common::TimedLogging::timer_¶
No documentation provided.
-
std::mutex Dune::XT::Common::TimedLogging::mutex_¶
No documentation provided.
-
const ssize_t Dune::XT::Common::TimedLogging::default_max_info_level¶
No documentation provided.
-
const ssize_t Dune::XT::Common::TimedLogging::default_max_debug_level¶
No documentation provided.
-
const bool Dune::XT::Common::TimedLogging::default_enable_warnings¶
No documentation provided.
-
const bool Dune::XT::Common::TimedLogging::default_enable_colors¶
No documentation provided.