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

Collaboration diagram for cern::laser::guiplatform::util::LogFactory:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LogFactory ()

Static Public Member Functions

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

Static Private Attributes

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

Detailed Description

This is logger factory. All clasess inside cern.laser.guiplatform should use this class to obtain appropriate logger. This class is used because of problem with Logger inside Netbeans (where put log4j.properties file) This class creates logger and configures it programmatically.

Author:
pawlowsk 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.
ihabjan - Igor Habjan, Cosylab

Constructor & Destructor Documentation

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

Creates a new instance of LogFactory


Member Function Documentation

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

Retrieve logger by name

static 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

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 by  doxygen 1.6.2