Class for logging record. More...
#include <LogRecord.hxx>

Public Types | |
| typedef int | LogLevel |
Public Member Functions | |
| LogRecord (const std::string &name, int level, const std::string &message, const std::string &file, int line) | |
| virtual | ~LogRecord () |
| virtual std::string | getLevelName (int level) |
| virtual std::string | getStr () |
Public Attributes | |
| const std::string | _loggerName |
| const std::string | _message |
| int | _level |
| std::string | _fileName |
| int | _line |
Static Public Attributes | |
| static const LogLevel | FATAL = 50 |
| static const LogLevel | ERROR = 40 |
| static const LogLevel | WARNING = 30 |
| static const LogLevel | INFO = 20 |
| static const LogLevel | DEBUG = 10 |
| static const LogLevel | NOTSET = 0 |
Class for logging record.
Definition at line 32 of file LogRecord.hxx.
| typedef int YACS::ENGINE::LogRecord::LogLevel |
Definition at line 35 of file LogRecord.hxx.
| LogRecord::LogRecord | ( | const std::string & | name, |
| int | level, | ||
| const std::string & | message, | ||
| const std::string & | file, | ||
| int | line | ||
| ) |
Definition at line 30 of file LogRecord.cxx.
|
virtual |
Definition at line 35 of file LogRecord.cxx.
|
virtual |
|
virtual |
Definition at line 58 of file LogRecord.cxx.
References _fileName, _level, _line, _loggerName, _message, and getLevelName().
| std::string YACS::ENGINE::LogRecord::_fileName |
| int YACS::ENGINE::LogRecord::_level |
| int YACS::ENGINE::LogRecord::_line |
| const std::string YACS::ENGINE::LogRecord::_loggerName |
| const std::string YACS::ENGINE::LogRecord::_message |
|
static |
Definition at line 40 of file LogRecord.hxx.
Referenced by getLevelName().
|
static |
Definition at line 37 of file LogRecord.hxx.
Referenced by YACS::ENGINE::Logger::error(), and getLevelName().
|
static |
Definition at line 36 of file LogRecord.hxx.
Referenced by YACS::ENGINE::Logger::fatal(), and getLevelName().
|
static |
Definition at line 39 of file LogRecord.hxx.
Referenced by getLevelName().
|
static |
Definition at line 41 of file LogRecord.hxx.
|
static |
Definition at line 38 of file LogRecord.hxx.
Referenced by getLevelName(), YACS::ENGINE::Logger::hasErrors(), and YACS::ENGINE::Logger::warning().