DCMTK  Version 3.6.1 20131114
OFFIS DICOM Toolkit
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
dcmtk::log4cplus::helpers::LogLog Class Reference

This class used to output log statements from within the log4cplus package. More...

+ Collaboration diagram for dcmtk::log4cplus::helpers::LogLog:

Public Types

typedef LogLogPtr
 Return type of getLogLog().
 

Public Member Functions

void setInternalDebugging (bool enabled)
 Allows to enable/disable log4cplus internal logging.
 
void setQuietMode (bool quietMode)
 In quite mode no LogLog generates strictly no output, not even for errors. More...
 
void debug (const log4cplus::tstring &msg) const
 This method is used to output log4cplus internal debug statements. More...
 
void debug (tchar const *msg) const
 
void error (const log4cplus::tstring &msg, bool throw_flag=false) const
 This method is used to output log4cplus internal error statements. More...
 
void error (tchar const *msg, bool throw_flag=false) const
 
void warn (const log4cplus::tstring &msg) const
 This method is used to output log4cplus internal warning statements. More...
 
void warn (tchar const *msg) const
 

Static Public Member Functions

static Ptr getLogLog ()
 Returns a reference to the LogLog singleton.
 

Private Types

enum  TriState { TriUndef = -1, TriFalse, TriTrue }
 

Private Member Functions

DCMTK_LOG4CPLUS_PRIVATE void logging_worker (tostream &os, bool(LogLog::*cond)() const, tchar const *, tchar const *, bool throw_flag=false) const
 
DCMTK_LOG4CPLUS_PRIVATE bool get_quiet_mode () const
 
DCMTK_LOG4CPLUS_PRIVATE bool get_not_quiet_mode () const
 
DCMTK_LOG4CPLUS_PRIVATE bool get_debug_mode () const
 
DCMTK_LOG4CPLUS_PRIVATE LogLog (const LogLog &)
 
DCMTK_LOG4CPLUS_PRIVATE LogLogoperator= (LogLog const &)
 

Static Private Member Functions

static DCMTK_LOG4CPLUS_PRIVATE void set_tristate_from_env (TriState *, tchar const *envvar)
 

Private Attributes

TriState debugEnabled
 
TriState quietMode
 
thread::Mutex mutex
 

Detailed Description

This class used to output log statements from within the log4cplus package.

Log4cplus components cannot make log4cplus logging calls. However, it is sometimes useful for the user to learn about what log4cplus is doing. You can enable log4cplus internal logging by defining the log4cplus.configDebug variable.

All log4cplus internal debug calls go to cout where as internal error messages are sent to cerr. All internal messages are prepended with the string "log4clus: ".

Member Function Documentation

void dcmtk::log4cplus::helpers::LogLog::debug ( const log4cplus::tstring msg) const

This method is used to output log4cplus internal debug statements.

Output goes to STD_NAMESPACE cout.

void dcmtk::log4cplus::helpers::LogLog::error ( const log4cplus::tstring msg,
bool  throw_flag = false 
) const

This method is used to output log4cplus internal error statements.

There is no way to disable error statements. Output goes to STD_NAMESPACE cerr. Optionally, this method can throw STD_NAMESPACE runtime_error exception too.

void dcmtk::log4cplus::helpers::LogLog::setQuietMode ( bool  quietMode)

In quite mode no LogLog generates strictly no output, not even for errors.

Parameters
quietModeA true for not
void dcmtk::log4cplus::helpers::LogLog::warn ( const log4cplus::tstring msg) const

This method is used to output log4cplus internal warning statements.

There is no way to disable warning statements. Output goes to STD_NAMESPACE cerr.


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


Generated on Thu Dec 5 2013 for DCMTK Version 3.6.1 20131114 by Doxygen 1.8.5