LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
logicalaccess::Logs Class Reference

#include <logs.hpp>

Public Member Functions

 Logs (const char *file, const char *func, int line, enum LogLevel level)
 
 ~Logs ()
 
template<class T >
Logsoperator<< (const T &arg)
 

Static Public Attributes

static std::ofstream logfile
 
static bool logToStderr = false
 

Static Private Member Functions

static std::string pretty_context_infos ()
 

Private Attributes

enum LogLevel d_level
 
std::stringstream _stream
 

Static Private Attributes

static std::map< LogLevel, std::string > logLevelMsg
 

Constructor & Destructor Documentation

◆ Logs()

logicalaccess::Logs::Logs ( const char *  file,
const char *  func,
int  line,
enum LogLevel  level 
)

◆ ~Logs()

logicalaccess::Logs::~Logs ( )

Member Function Documentation

◆ operator<<()

template<class T >
Logs & logicalaccess::Logs::operator<< ( const T &  arg)
inline

◆ pretty_context_infos()

std::string logicalaccess::Logs::pretty_context_infos ( )
staticprivate

Build a string containing some contextual information.

Member Data Documentation

◆ _stream

std::stringstream logicalaccess::Logs::_stream
private

◆ d_level

enum LogLevel logicalaccess::Logs::d_level
private

◆ logfile

std::ofstream logicalaccess::Logs::logfile
static

◆ logLevelMsg

std::map< LogLevel, std::string > logicalaccess::Logs::logLevelMsg
staticprivate

◆ logToStderr

bool logicalaccess::Logs::logToStderr = false
static

Do we duplicate the log to stderr? Defaults to false.


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