|
CppNCorr
C++ ncorr Digital Image Correlation engine
|
Process-wide singleton logger. More...
#include <log.h>
Public Member Functions | |
| void | set_console_level (Level l) |
| void | set_file_level (Level l) |
| Level | console_level () const |
| Level | file_level () const |
| bool | set_file (const std::string &path) |
| Open (or replace) the file sink. | |
| void | set_console_enabled (bool on) |
| Enable or disable console output entirely. | |
| void | set_verbose_format (bool on) |
| Include timestamp + source location in console output too (the file sink always includes them). | |
| void | configure_from_env () |
| Apply NCORR_LOG_LEVEL / NCORR_LOG_FILE / NCORR_LOG_CONSOLE. | |
| bool | enabled (Level l) |
True if a message at l would reach any sink. | |
| void | write (Level l, const char *file, int line, const std::string &msg) |
Emit a fully-formed message (trailing newlines are trimmed) at l. | |
Static Public Member Functions | |
| static Logger & | instance () |
| void ncorr::log::Logger::configure_from_env | ( | ) |
| bool ncorr::log::Logger::enabled | ( | Level | l | ) |
| void ncorr::log::Logger::set_console_enabled | ( | bool | on | ) |
| bool ncorr::log::Logger::set_file | ( | const std::string & | path | ) |
| void ncorr::log::Logger::set_verbose_format | ( | bool | on | ) |
| void ncorr::log::Logger::write | ( | Level | l, |
| const char * | file, | ||
| int | line, | ||
| const std::string & | msg | ||
| ) |