ztsdb
Public Member Functions | List of all members
zlog::Logger Struct Reference

#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)
 

Detailed Description

Very simple logger. It's quite enough though as we don't use it on time-critical paths (for release versions at least).

Member Function Documentation

◆ changeFile()

int zlog::Logger::changeFile ( const std::string &  s)
inline

Close the current log file if any and open the specified file for logging.


The documentation for this struct was generated from the following file: