|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.itextpdf.text.log.LoggerFactory
public class 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
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 loggerpublic Logger logger()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |