public class TLcdSimpleLoggerFactory extends Object implements ILcdLoggerFactory
ILcdLogger
instances that handles
only informational, warning and error messages and discard the others. The
informational messages are written to the standard output stream.
The warning and error messages are written to the standard error stream.
See TLcdLoggerFactory
for how to enable this factory.
ILcdLogger
Constructor and Description |
---|
TLcdSimpleLoggerFactory()
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.