|
libmoost
|
#include <standard_console.hpp>
Public Member Functions | |
| standard_console (log4cxx::LevelPtr threshold=log4cxx::Level::getError(), std::string sLayout="") | |
| virtual | ~standard_console () |
| void | enable () |
| void | disable () |
| bool | setThreshold (int val) |
| bool | setThreshold (const log4cxx::LevelPtr &level) |
| bool | setSmallThreshold (int val) |
| bool | setThreshold (const std::string &str) |
| int | getSmallThreshold () |
| int | getThreshold () |
| void | getThreshold (std::string &level) |
Private Member Functions | |
| bool | isAllDigits (const std::string &str) |
Private Attributes | |
| boost::shared_mutex | m_mutex |
| log4cxx::ConsoleAppenderPtr | m_pAppender |
| log4cxx::LevelPtr | m_invalidLevel |
Available levels are (defined in log4cxx::Level)
enum {
OFF_INT = INT_MAX,
FATAL_INT = 50000,
ERROR_INT = 40000,
WARN_INT = 30000,
INFO_INT = 20000,
DEBUG_INT = 10000,
TRACE_INT = 5000,
ALL_INT = INT_MIN
};
Definition at line 73 of file standard_console.hpp.
| moost::logging::standard_console::standard_console | ( | log4cxx::LevelPtr | threshold = log4cxx::Level::getError(), |
| std::string | sLayout = "" |
||
| ) | [inline] |
Constructor. The default layout is: "[%d{yyyy-MMM-dd HH:mm:ss}|%c](%p) %m%n"
Definition at line 81 of file standard_console.hpp.

| virtual moost::logging::standard_console::~standard_console | ( | ) | [inline, virtual] |
Definition at line 114 of file standard_console.hpp.
| void moost::logging::standard_console::disable | ( | ) | [inline] |
Definition at line 122 of file standard_console.hpp.
| void moost::logging::standard_console::enable | ( | ) | [inline] |
Definition at line 117 of file standard_console.hpp.
| int moost::logging::standard_console::getSmallThreshold | ( | ) | [inline] |
Definition at line 226 of file standard_console.hpp.
| int moost::logging::standard_console::getThreshold | ( | ) | [inline] |
Definition at line 263 of file standard_console.hpp.
| void moost::logging::standard_console::getThreshold | ( | std::string & | level | ) | [inline] |
Definition at line 269 of file standard_console.hpp.
| bool moost::logging::standard_console::isAllDigits | ( | const std::string & | str | ) | [inline, private] |
| bool moost::logging::standard_console::setSmallThreshold | ( | int | val | ) | [inline] |
Definition at line 164 of file standard_console.hpp.


| bool moost::logging::standard_console::setThreshold | ( | int | val | ) | [inline] |
Available levels are (defined in log4cxx::Level)
enum {
OFF_INT = INT_MAX,
FATAL_INT = 50000,
ERROR_INT = 40000,
WARN_INT = 30000,
INFO_INT = 20000,
DEBUG_INT = 10000,
TRACE_INT = 5000,
ALL_INT = INT_MIN
};
Definition at line 142 of file standard_console.hpp.

| bool moost::logging::standard_console::setThreshold | ( | const log4cxx::LevelPtr & | level | ) | [inline] |
Definition at line 157 of file standard_console.hpp.
| bool moost::logging::standard_console::setThreshold | ( | const std::string & | str | ) | [inline] |
log4cxx::LevelPtr moost::logging::standard_console::m_invalidLevel [private] |
Definition at line 294 of file standard_console.hpp.
boost::shared_mutex moost::logging::standard_console::m_mutex [private] |
Definition at line 292 of file standard_console.hpp.
log4cxx::ConsoleAppenderPtr moost::logging::standard_console::m_pAppender [private] |
Definition at line 293 of file standard_console.hpp.