Package com.itextpdf.text.log
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 LoggerFactory
Returns the LoggerFactorystatic Logger
Returns the logger set in this LoggerFactory.static Logger
Returns the logger set in this LoggerFactory.logger()
Get the logger.void
Set 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
Get the logger.- Returns:
- the logger
-