|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.click.extras.service.JdkLogService
public class JdkLogService
Provides a JDK Util Logging LogService adapter class with a logger name of "Click".
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <click-app charset="UTF-8"> <pages package="org.apache.click.examples.page"/> <log-service classname="org.apache.click.extras.service.JdkLogService"/> </click-app>
Field Summary | |
---|---|
protected Logger |
logger
The wrapped JDK logger instance. |
protected String |
name
The logger category name. |
Constructor Summary | |
---|---|
JdkLogService()
|
Method Summary | |
---|---|
void |
debug(Object message)
Log the message at Level.FINE level. |
void |
debug(Object message,
Throwable error)
Log the message and error at Level.FINE level. |
void |
error(Object message)
Log the message at Level.SEVERE level. |
void |
error(Object message,
Throwable error)
Log the message and error at Level.SEVERE level. |
String |
getName()
Return the logger category name. |
void |
info(Object message)
Log the message at Level.INFO level. |
void |
info(Object message,
Throwable error)
Log the message and error at Level.INFO level. |
boolean |
isDebugEnabled()
Is logging enabled at the Level.FINE level. |
boolean |
isInfoEnabled()
Is logging enabled at the Level.INFO level. |
boolean |
isTraceEnabled()
Is Trace logging enabled at the Level.FINER level. |
void |
onDestroy()
|
void |
onInit(ServletContext servletContext)
|
void |
setName(String name)
The logger category name. |
void |
trace(Object message)
Log the message at Level.FINER level. |
void |
trace(Object message,
Throwable error)
Log the message and error at Level.FINER level. |
void |
warn(Object message)
Log the message at Level.WARNING level. |
void |
warn(Object message,
Throwable error)
Log the message and error at Level.WARNING level. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Logger logger
protected String name
Constructor Detail |
---|
public JdkLogService()
Method Detail |
---|
public void onInit(ServletContext servletContext) throws Exception
onInit
in interface LogService
servletContext
- the application servlet context
Exception
- if an error occurs initializing the LogServiceLogService.onInit(javax.servlet.ServletContext)
public void onDestroy()
onDestroy
in interface LogService
LogService.onDestroy()
public void debug(Object message)
debug
in interface LogService
message
- the message to logLogService.debug(Object)
public void debug(Object message, Throwable error)
debug
in interface LogService
message
- the message to logerror
- the error to logLogService.debug(Object, Throwable)
public void error(Object message)
error
in interface LogService
message
- the message to logLogService.error(Object)
public void error(Object message, Throwable error)
error
in interface LogService
message
- the message to logerror
- the error to logLogService.error(Object, Throwable)
public void info(Object message)
info
in interface LogService
message
- the message to logLogService.info(Object)
public void info(Object message, Throwable error)
info
in interface LogService
message
- the message to logerror
- the error to logLogService.info(Object, Throwable)
public boolean isDebugEnabled()
isDebugEnabled
in interface LogService
LogService.isDebugEnabled()
public boolean isInfoEnabled()
isInfoEnabled
in interface LogService
LogService.isInfoEnabled()
public boolean isTraceEnabled()
isTraceEnabled
in interface LogService
LogService.isTraceEnabled()
public void trace(Object message)
trace
in interface LogService
message
- the message to logLogService.trace(Object)
public void trace(Object message, Throwable error)
trace
in interface LogService
message
- the message to logerror
- the error to logLogService.trace(Object, Throwable)
public void warn(Object message)
warn
in interface LogService
message
- the message to logLogService.warn(Object)
public void warn(Object message, Throwable error)
warn
in interface LogService
message
- the message to logerror
- the error to logLogService.warn(Object, Throwable)
public String getName()
public void setName(String name)
name
- the logger category name to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |