|
CppNCorr
C++ ncorr Digital Image Correlation engine
|
Classes | |
| class | Logger |
| Process-wide singleton logger. More... | |
| class | Stream |
| RAII stream builder; flushes its accumulated text to the logger when it is destroyed at the end of the full expression. More... | |
| class | Voidify |
| Helper that turns the conditional logging expression back into a void statement (glog idiom). More... | |
Enumerations | |
| enum class | Level { Trace = 0 , Debug = 1 , Info = 2 , Warn = 3 , Error = 4 , Off = 5 } |
| Severity levels, ordered from most to least verbose. More... | |
Functions | |
| Level | level_from_string (const std::string &s, Level fallback=Level::Info) |
| Parse a level name (case-insensitive): trace, debug, info, warn|warning, error, off. | |
| const char * | level_name (Level l) |
| Short, fixed-width display name for a level (e.g. "INFO "). | |
| void | set_level (Level l) |
| Set the console threshold (convenience wrapper). | |
| void | set_debug (bool on) |
Lower the console threshold to Debug when on is true (used to honour the engine's existing debug flag). | |
| bool | set_file (const std::string &path) |
| Convenience: open a log file sink (full Debug detail). | |
| bool | enabled (Level l) |
True if a message at l would be emitted by any sink. | |
|
strong |
|
inline |
| Level ncorr::log::level_from_string | ( | const std::string & | s, |
| Level | fallback = Level::Info |
||
| ) |
| const char * ncorr::log::level_name | ( | Level | l | ) |
| void ncorr::log::set_debug | ( | bool | on | ) |
| bool ncorr::log::set_file | ( | const std::string & | path | ) |