
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" |
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.
| cern::laser::guiplatform::util::LogFactory::LogFactory | ( | ) | [inline] |
Creates a new instance of LogFactory
| 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
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] |
"%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
1.6.2