Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

cern::laser::guiplatform::util::LogFactory Class Reference

List of all members.

Public Member Functions

 LogFactory ()

Static Public Member Functions

Logger getLogger (String name)
void logException (Logger thisLogger, Exception exception)

Static Private Attributes

final String CONSOLE_PATTERN_LAYOUT = "%5p [%t] (%F:%L) - %m%n"
final String FILE_PATTERN_LAYOUT
final String LOG_FILE_NAME = System.getProperty("netbeans.user") + "/alarm_console.log"

Detailed Description

For logger to be configured log4j.configuration System property has to be set to give the location (including path) of the configuration file which can be included in jar and the location given as the relative package path, e.g. resources/log4j.properties. If this property is not provided the default configuration file resources/log4j.properties provided in this projects jar file is used.

Author:
ihabjan - Igor Habjan, Cosylab


Constructor & Destructor Documentation

cern::laser::guiplatform::util::LogFactory::LogFactory  )  [inline]
 

Creates a new instance of LogFactory


Member Function Documentation

Logger cern::laser::guiplatform::util::LogFactory::getLogger String  name  )  [inline, static]
 

Retrieve logger by name

void cern::laser::guiplatform::util::LogFactory::logException Logger  thisLogger,
Exception  exception
[inline, static]
 

Help method which prints to logger stack trace of exception


Member Data Documentation

final String cern::laser::guiplatform::util::LogFactory::CONSOLE_PATTERN_LAYOUT = "%5p [%t] (%F:%L) - %m%n" [static, private]
 

console pattern layout

final String cern::laser::guiplatform::util::LogFactory::FILE_PATTERN_LAYOUT [static, private]
 

Initial value:

"%5p [%t] {%d{dd HH:mm:ss}} (%F:%L) - %m%n"
file pattern layout

final String cern::laser::guiplatform::util::LogFactory::LOG_FILE_NAME = System.getProperty("netbeans.user") + "/alarm_console.log" [static, private]
 

log filename and path


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:09:36 2009 for ACS Java API by doxygen 1.3.8