Constructor and Description |
---|
Log4JLogger(org.apache.log4j.Logger log4jLogger) |
Modifier and Type | Method and Description |
---|---|
void |
debug(String message)
Log a debug message.
|
void |
debug(String message,
Throwable throwable)
Log a debug message.
|
void |
error(String message)
Log a error message.
|
void |
error(String message,
Throwable throwable)
Log a error message.
|
void |
fatalError(String message)
Log a fatalError message.
|
void |
fatalError(String message,
Throwable throwable)
Log a fatalError message.
|
Logger |
getChildLogger(String name)
Create a new child logger.
|
void |
info(String message)
Log a info message.
|
void |
info(String message,
Throwable throwable)
Log a info message.
|
boolean |
isDebugEnabled()
Determine if messages of priority "debug" will be logged.
|
boolean |
isErrorEnabled()
Determine if messages of priority "error" will be logged.
|
boolean |
isFatalErrorEnabled()
Determine if messages of priority "fatalError" will be logged.
|
boolean |
isInfoEnabled()
Determine if messages of priority "info" will be logged.
|
boolean |
isWarnEnabled()
Determine if messages of priority "warn" will be logged.
|
void |
warn(String message)
Log a warn message.
|
void |
warn(String message,
Throwable throwable)
Log a warn message.
|
public void debug(String message)
public boolean isDebugEnabled()
isDebugEnabled
in interface Logger
public void info(String message)
public boolean isInfoEnabled()
isInfoEnabled
in interface Logger
public void warn(String message)
public boolean isWarnEnabled()
isWarnEnabled
in interface Logger
public void error(String message)
public boolean isErrorEnabled()
isErrorEnabled
in interface Logger
public void fatalError(String message)
fatalError
in interface Logger
message
- the messagepublic void fatalError(String message, Throwable throwable)
fatalError
in interface Logger
message
- the messagethrowable
- the throwablepublic boolean isFatalErrorEnabled()
isFatalErrorEnabled
in interface Logger
public Logger getChildLogger(String name)
IllegalArgumentException
if name has an empty element namegetChildLogger
in interface Logger
name
- the subname of this loggerCopyright © 2006–2016 The Apache Software Foundation. All rights reserved.