![]() |
Fledge
An open source edge computing platform for industrial users
|
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 Logger * | getLogger () |
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.
void Logger::setMinLevel | ( | const std::string & | level | ) |
Set the minimum logging level to report for this process.
level | Sring representing level |