Class LoggerFactory
java.lang.Object
com.itextpdf.text.log.LoggerFactory
LoggerFactory can be used to set a logger. The logger should be created by
implementing
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 iText-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LoggerFactoryReturns the LoggerFactorystatic LoggerReturns the logger set in this LoggerFactory.static LoggerReturns the logger set in this LoggerFactory.logger()Get the logger.voidSet the global logger to process logging statements with.
-
Field Details
-
myself
-
logger
-
-
Constructor Details
-
LoggerFactory
private LoggerFactory()
-
-
Method Details
-
getLogger
Returns the logger set in this LoggerFactory. Defaults toNoOpLogger- Parameters:
klass-- Returns:
- the logger.
-
getLogger
Returns the logger set in this LoggerFactory. Defaults toNoOpLogger- Parameters:
name-- Returns:
- the logger.
-
getInstance
Returns the LoggerFactory- Returns:
- singleton instance of this LoggerFactory
-
setLogger
Set the global logger to process logging statements with.- Parameters:
logger- the logger
-
logger
-