|
BuildCache
|
Debug logging functions. More...
Classes | |
| class | log |
| A simple log stream object. More... | |
Enumerations | |
| enum | log_level_t { DEBUG = 1, INFO = 2, ERROR = 3, FATAL = 4, NONE = 5 } |
| Recognized debug log levels. | |
Functions | |
| void | set_log_level (const int level) |
| Set the global log level. More... | |
| void | set_log_file (const std::string &file) |
| Set the global log file. More... | |
Debug logging functions.
| void bcache::debug::set_log_file | ( | const std::string & | file | ) |
Set the global log file.
| file | Path to a log file, or an empty string (indicating stdout). |
| void bcache::debug::set_log_level | ( | const int | level | ) |
Set the global log level.
| level | An integer that corresponds to a log_level_t enum value. |
1.8.17