presage
0.9.2~beta
|
#include <logger.h>
Classes | |
class | LoggerState |
Public Types | |
enum | Level { EMERG = 0, FATAL = 0, ALERT = 100, CRIT = 200, ERROR = 300, WARN = 400, NOTICE = 500, INFO = 600, DEBUG = 700, ALL = 800 } |
Public Member Functions | |
Logger (std::string logger_name, std::basic_ostream< _charT, _Traits > &ostr) | |
Logger (std::string logger_name, std::basic_ostream< _charT, _Traits > &ostr, const std::string &lvl) | |
void | init (const std::string &name, const std::string &lvl) |
~Logger () | |
void | setLevel (const std::string &lvl) const |
void | setLevel (Level lvl) const |
Level | getLevel () const |
void | setCurrentLevel (Level lvl) const |
Level | getCurrentLevel () const |
bool | shouldLog () const |
const Logger & | operator<< (_SetLevel __l) const |
void | endl () const |
Private Member Functions | |
void | set (Level &level, const std::string &lvl) const |
void | set_name (const std::string &logger_name) |
Private Attributes | |
std::string | name |
std::basic_ostream< _charT, _Traits > & | outstream |
LoggerState * | state |
Friends | |
template<typename T > | |
const Logger & | operator<< (const Logger &lgr, const T &msg) |
const Logger & | operator<< (const Logger &lgr, const Logger &(*fp)(const Logger &)) |
enum Logger::Level |
|
inline |
|
inline |
Definition at line 93 of file logger.h.
Referenced by Logger< char >::Logger().
|
inlineprivate |
Definition at line 234 of file logger.h.
Referenced by Logger< char >::init().
|
inline |
Definition at line 114 of file logger.h.
Referenced by Logger< char >::operator<<().
|
inline |
Definition at line 149 of file logger.h.
Referenced by SmoothedNgramPredictor::check_learn_consistency(), Logger< char >::endl(), and SmoothedNgramPredictor::predict().
|
private |
Definition at line 239 of file logger.h.
Referenced by Logger< char >::init(), and Logger< char >::set_name().
|
private |
Definition at line 240 of file logger.h.
Referenced by Logger< char >::endl(), and Logger< char >::~Logger().
|
private |
Definition at line 250 of file logger.h.
Referenced by Logger< char >::endl(), Logger< char >::getCurrentLevel(), Logger< char >::getLevel(), Logger< char >::init(), Logger< char >::setCurrentLevel(), Logger< char >::setLevel(), Logger< char >::shouldLog(), and Logger< char >::~Logger().