NetFlex  0.0.0
C++11 HTTP Server Library.
Public Types | Public Member Functions | List of all members
netflex::logger Class Reference

#include <logger.hpp>

Inheritance diagram for netflex::logger:
netflex::logger_iface

Public Types

enum  log_level { error = 0, warn = 1, info = 2, debug = 3 }
 

Public Member Functions

 logger (log_level level=log_level::info)
 ctor
 
 ~logger (void)=default
 dtor
 
 logger (const logger &)=default
 copy ctor
 
loggeroperator= (const logger &)=default
 assignment operator
 
void debug (const std::string &msg, const std::string &file, std::size_t line)
 
void info (const std::string &msg, const std::string &file, std::size_t line)
 
void warn (const std::string &msg, const std::string &file, std::size_t line)
 
void error (const std::string &msg, const std::string &file, std::size_t line)
 
- Public Member Functions inherited from netflex::logger_iface
 logger_iface (void)=default
 ctor
 
virtual ~logger_iface (void)=default
 dtor
 
 logger_iface (const logger_iface &)=default
 copy ctor
 
logger_ifaceoperator= (const logger_iface &)=default
 assignment operator
 

Detailed Description

default logger class provided by the library

Member Enumeration Documentation

◆ log_level

log level

Member Function Documentation

◆ debug()

void netflex::logger::debug ( const std::string &  msg,
const std::string &  file,
std::size_t  line 
)
virtual

debug logging

Parameters
msgmessage to be logged
filefile from which the message is coming
lineline in the file of the message

Implements netflex::logger_iface.

◆ error()

void netflex::logger::error ( const std::string &  msg,
const std::string &  file,
std::size_t  line 
)
virtual

error logging

Parameters
msgmessage to be logged
filefile from which the message is coming
lineline in the file of the message

Implements netflex::logger_iface.

◆ info()

void netflex::logger::info ( const std::string &  msg,
const std::string &  file,
std::size_t  line 
)
virtual

info logging

Parameters
msgmessage to be logged
filefile from which the message is coming
lineline in the file of the message

Implements netflex::logger_iface.

◆ warn()

void netflex::logger::warn ( const std::string &  msg,
const std::string &  file,
std::size_t  line 
)
virtual

warn logging

Parameters
msgmessage to be logged
filefile from which the message is coming
lineline in the file of the message

Implements netflex::logger_iface.


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