public class TLcdJULLoggerFactory extends Object implements ILcdLoggerFactory
ILcdLogger
instances that delegate
to the standard Java logging framework from the java.util.logging
(JUL) package.
Each ILcdLogger log level has a corresponding JUL level:
ILcdLogger | JUL level |
---|---|
trace | FINEST |
debug | FINE |
info | INFO |
warn | WARNING |
error | SEVERE |
ILcdLogger
,
Logger
Constructor and Description |
---|
TLcdJULLoggerFactory()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
ILcdLogger |
getLogger(Class aClass)
Creates or returns a logger having the same name as the given class.
|
ILcdLogger |
getLogger(String aLoggerName)
Creates or returns a logger with the given name.
|
public ILcdLogger getLogger(String aLoggerName)
ILcdLoggerFactory
getLogger
in interface ILcdLoggerFactory
aLoggerName
- the name of the logger to create.public ILcdLogger getLogger(Class aClass)
ILcdLoggerFactory
getLogger
in interface ILcdLoggerFactory
aClass
- the class for which to create a logger.