Otclient  14/8/2020
Logger Class Reference

#include <logger.h>

Public Member Functions

void log (Fw::LogLevel level, const std::string &message)
 
void logFunc (Fw::LogLevel level, const std::string &message, std::string prettyFunction)
 
void debug (const std::string &what)
 
void info (const std::string &what)
 
void warning (const std::string &what)
 
void error (const std::string &what)
 
void fatal (const std::string &what)
 
void fireOldMessages ()
 
void setLogFile (const std::string &file)
 
void setOnLog (const OnLogCallback &onLog)
 

Detailed Description

Definition at line 39 of file logger.h.

Member Function Documentation

◆ debug()

void Logger::debug ( const std::string &  what)
inline

Definition at line 51 of file logger.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ error()

void Logger::error ( const std::string &  what)
inline

Definition at line 54 of file logger.h.

Here is the call graph for this function:

◆ fatal()

void Logger::fatal ( const std::string &  what)
inline

Definition at line 55 of file logger.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fireOldMessages()

void Logger::fireOldMessages ( )

Definition at line 120 of file logger.cpp.

Here is the caller graph for this function:

◆ info()

void Logger::info ( const std::string &  what)
inline

Definition at line 52 of file logger.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ log()

void Logger::log ( Fw::LogLevel  level,
const std::string &  message 
)

Definition at line 37 of file logger.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ logFunc()

void Logger::logFunc ( Fw::LogLevel  level,
const std::string &  message,
std::string  prettyFunction 
)

Definition at line 99 of file logger.cpp.

Here is the call graph for this function:

◆ setLogFile()

void Logger::setLogFile ( const std::string &  file)

Definition at line 132 of file logger.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setOnLog()

void Logger::setOnLog ( const OnLogCallback &  onLog)
inline

Definition at line 59 of file logger.h.

Here is the caller graph for this function:

◆ warning()

void Logger::warning ( const std::string &  what)
inline

Definition at line 53 of file logger.h.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: