Fledge
An open source edge computing platform for industrial users
Logger Class Reference

Fledge Logger class used to log to syslog. More...

#include <logger.h>

Public Member Functions

 Logger (const std::string &application)
 
void debug (const std::string &msg,...)
 
void printLongString (const std::string &)
 
void info (const std::string &msg,...)
 
void warn (const std::string &msg,...)
 
void error (const std::string &msg,...)
 
void fatal (const std::string &msg,...)
 
void setMinLevel (const std::string &level)
 Set the minimum logging level to report for this process. More...
 
std::string & getMinLevel ()
 

Static Public Member Functions

static LoggergetLogger ()
 

Detailed Description

Fledge Logger class used to log to syslog.

At startup this class should be constructed using the standard constructor. To log a message call debug, info, warn etc. using the instance of the class. TO get that instance call the static method getLogger.

Member Function Documentation

◆ setMinLevel()

void Logger::setMinLevel ( const std::string &  level)

Set the minimum logging level to report for this process.

Parameters
levelSring representing level

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