A dummy structured logger. More...
#include <Logger.h>
A dummy structured logger.
This should be replaced by a fully functional logger from Profiler or similar.
The log output is structured using JSON or HTML format for easy parsing. Logging is split into sections
The logger also handles output which might go to a separate stream.
Public Types | |
enum | Level : short { None , Trace , Debug , Info , Warn , Error , Fatal } |
Different levels of logging. More... | |
Public Member Functions | |
void | msg (const std::string &message, Level log_lvl) |
template<typename ForwardIt > | |
void | msg (const std::string &message, ForwardIt begin, ForwardIt end, Level log_lvl, int precision=3) |
Static Public Member Functions | |
static std::string | scientific (double val) |
Converts double to a string in scientific notation. More... | |
Public Attributes | |
Level | max_trace_level = None |
Level | max_warn_level = None |
highest level of trace message that can be logged More... | |
bool | data_dump = false |
highest level of warning/error that can be logged More... | |
enum molpro::linalg::itsolv::Logger::Level : short |
|
inline |
void molpro::linalg::itsolv::Logger::msg | ( | const std::string & | message, |
Level | log_lvl | ||
) |
|
static |
Converts double to a string in scientific notation.
bool molpro::linalg::itsolv::Logger::data_dump = false |
highest level of warning/error that can be logged