OFFIS DCMTK  Version 3.6.0
Static Public Member Functions | Private Member Functions | Static Private Member Functions | Static Private Attributes
OFLog Class Reference

functions for initializing the logging system More...

Collaboration diagram for OFLog:
[legend]

List of all members.

Static Public Member Functions

static OFLogger getLogger (const char *name)
 create a new Logger object
static void configure (OFLogger::LogLevel level=OFLogger::WARN_LOG_LEVEL)
 set up the logging and enable it
static void configureFromCommandLine (OFCommandLine &cmd, OFConsoleApplication &app)
 handle the command line options used for logging
static void addOptions (OFCommandLine &cmd)
 add the command line options which configureFromCommandLine() checks for
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, ....)

Private Member Functions

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

Static Private Member Functions

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

Static Private Attributes

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

Detailed Description

functions for initializing the logging system

Definition at line 105 of file oflog.h.


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

set up the logging and enable it

Parameters:
levelthe verbosity that you want
static void OFLog::configureFromCommandLine ( OFCommandLine cmd,
OFConsoleApplication app 
) [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
static void OFLog::configureLogger ( log4cplus::LogLevel  level) [static, private]

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

Parameters:
namethe name of the logger
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 Thu May 24 2012 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.7.6.1