#include <log_level.hpp>
Definition at line 53 of file log_level.hpp.
Public Member Functions | |
| log_level (int lvl) | |
| Constructor. | |
| log_level (int lvl, const std::string &s) | |
| Constructor. | |
| int | get () const |
| Get the level value. | |
| const std::string & | get_string () const |
| Get the prefix. | |
Private Attributes | |
| const int | m_level |
| Value of the level. | |
| const std::string | m_prefix |
| String used for prefix for the current message. | |
| claw::log_level::log_level | ( | int | lvl | ) |
Constructor.
| lvl | The value of this level. |
Definition at line 44 of file log_level.cpp.
00045 : m_level(lvl) 00046 { 00047 00048 } // log_level::log_level()
| claw::log_level::log_level | ( | int | lvl, | |
| const std::string & | s | |||
| ) |
Constructor.
| lvl | The value of this level. | |
| s | The messages prefix. |
Definition at line 56 of file log_level.cpp.
| int claw::log_level::get | ( | ) | const |
Get the level value.
Definition at line 66 of file log_level.cpp.
References m_level.
Referenced by claw::log_system::operator<<(), and claw::log_system::set_level().
00067 { 00068 return m_level; 00069 } // log_level::get()
| const std::string & claw::log_level::get_string | ( | ) | const |
Get the prefix.
Definition at line 75 of file log_level.cpp.
References m_prefix.
Referenced by claw::log_system::operator<<().
00076 { 00077 return m_prefix; 00078 } // log_level::get_string()
const int claw::log_level::m_level [private] |
const std::string claw::log_level::m_prefix [private] |
String used for prefix for the current message.
Definition at line 66 of file log_level.hpp.
Referenced by get_string().
1.5.5