ztsdb
|
#include <logging.hpp>
Public Member Functions | |
Logger (const std::string &s, const std::string &tz_p) | |
void | init (const std::string &s, const std::string &tz_p) |
void | uninit () |
int | changeFile (const std::string &s) |
int | log (Severity sv, const char *fmt,...) |
void | setLevel (Severity sv) |
Severity | from_string (const std::string &s) |
Very simple logger. It's quite enough though as we don't use it on time-critical paths (for release versions at least).
|
inline |
Close the current log file if any and open the specified file for logging.