libmoost
moost::logging::standard_console Class Reference

#include <standard_console.hpp>

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

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.

Here is the call graph for this function:

Definition at line 114 of file standard_console.hpp.


Member Function Documentation

Definition at line 122 of file standard_console.hpp.

Definition at line 117 of file standard_console.hpp.

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]

Definition at line 277 of file standard_console.hpp.

Here is the caller graph for this function:

Definition at line 164 of file standard_console.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the caller graph for this function:

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]

Definition at line 200 of file standard_console.hpp.

Here is the call graph for this function:


Member Data Documentation

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.


The documentation for this class was generated from the following file: