public class LoggerFactory extends Object
Logger
. In the implementation users can choose how they
log received messages. Added for developers. For some cases it can be handy
to receive logging statements while developing applications with iTextModifier and Type | Field and Description |
---|---|
private Logger |
logger |
private static LoggerFactory |
myself |
Modifier | Constructor and Description |
---|---|
private |
LoggerFactory() |
Modifier and Type | Method and Description |
---|---|
static LoggerFactory |
getInstance()
Returns the LoggerFactory
|
static Logger |
getLogger(Class<?> klass)
Returns the logger set in this LoggerFactory.
|
static Logger |
getLogger(String name)
Returns the logger set in this LoggerFactory.
|
Logger |
logger()
Get the logger.
|
void |
setLogger(Logger logger)
Set the global logger to process logging statements with.
|
private static LoggerFactory myself
private LoggerFactory()
public static Logger getLogger(Class<?> klass)
NoOpLogger
klass
- public static Logger getLogger(String name)
NoOpLogger
name
- public static LoggerFactory getInstance()
public void setLogger(Logger logger)
logger
- the loggerWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses