BusBoy
2
|
Class to extend to receive log messages. More...
#include <Logger.h>
Public Types | |
enum | LogLevel { INFO, ERROR, DEBUG, WARN } |
Public Member Functions | |
virtual void | log (LogLevel level, const std::string &msg)=0 |
virtual void | log (const std::string &file, int line, LogLevel level, const std::string &msg) |
Default implementation ignores file and line. More... | |
Static Public Member Functions | |
static LogLevel | enumFromString (std::string strLevel) |
Parses the string equivalent of the enum. More... | |
static std::string | enumToString (LogLevel level) |
Returns the string equivalent of the enum. More... | |
Class to extend to receive log messages.
|
static |
Parses the string equivalent of the enum.
For example: "KEY" –> KEY
|
static |
Returns the string equivalent of the enum.
For example: KEY –> "KEY"
|
pure virtual |
Implemented in BUSBOY::AlgorithmContextAlgoLogger.
|
virtual |
Default implementation ignores file and line.
Reimplemented in BUSBOY::AlgorithmContextAlgoLogger.
Copyright 2014 Google Inc. All rights reserved.