DCMTK  Version 3.6.1 20170228
OFFIS DICOM Toolkit
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Static Public Member Functions | Private Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
OFLog Class Reference

functions for initializing the logging system More...

Static Public Member Functions

static OFLogger getLogger (const char *name)
 create a new logger object. More...
 
static void configure (OFLogger::LogLevel level=OFLogger::WARN_LOG_LEVEL)
 set up the logging and enable it More...
 
static void configureFromCommandLine (OFCommandLine &cmd, OFConsoleApplication &app, OFLogger::LogLevel defaultLevel=OFLogger::WARN_LOG_LEVEL)
 handle the command line options used for logging More...
 
static void addOptions (OFCommandLine &cmd)
 add the command line options which configureFromCommandLine() checks for More...
 
static void reconfigure (OFCommandLine *cmd=NULL)
 if there was a config file loaded in configureFromCommandLine(), the in-memory copy will be parsed again, but all variables will be updated first (current time, process id, ....) More...
 

Private Member Functions

 OFLog ()
 private constructor, don't create instances of this class
 

Static Private Member Functions

static void configureLogger (dcmtk::log4cplus::LogLevel level)
 set up the logging and enable it More...
 

Static Private Attributes

static OFauto_ptr
< dcmtk::log4cplus::helpers::Properties
configProperties_
 If we loaded a config file in configureFromCommandLine(), this is it.
 

Detailed Description

functions for initializing the logging system

Member Function Documentation

static void OFLog::addOptions ( OFCommandLine cmd)
static

add the command line options which configureFromCommandLine() checks for

Parameters
cmdthe command line to which these options should be added

Referenced by OFTestManager::run().

static void OFLog::configure ( OFLogger::LogLevel  level = OFLogger::WARN_LOG_LEVEL)
static

set up the logging and enable it

Parameters
levelthe verbosity that you want
static void OFLog::configureFromCommandLine ( OFCommandLine cmd,
OFConsoleApplication app,
OFLogger::LogLevel  defaultLevel = OFLogger::WARN_LOG_LEVEL 
)
static

handle the command line options used for logging

Parameters
cmdthe command line whose options are handled
appthe console application which is used for console output and error checking
defaultLeveldefault log level that is used if not specified on the command line

Referenced by OFTestManager::run().

static void OFLog::configureLogger ( dcmtk::log4cplus::LogLevel  level)
staticprivate

set up the logging and enable it

Parameters
levelthe verbosity that you want
static OFLogger OFLog::getLogger ( const char *  name)
static

create a new logger object.

Logger objects have a reference counting copy-constructor, so returning by-value is cheap.

Parameters
namethe name of the logger
Returns
requested logger object
static void OFLog::reconfigure ( OFCommandLine cmd = NULL)
static

if there was a config file loaded in configureFromCommandLine(), the in-memory copy will be parsed again, but all variables will be updated first (current time, process id, ....)

Parameters
cmdcommand line from which the application name will be retrieved

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


Generated on Tue Feb 28 2017 for DCMTK Version 3.6.1 20170228 by Doxygen 1.8.8