|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.service.Service
org.restlet.service.LogService
public class LogService
Service providing access logging service. The implementation is fully based
on the standard logging mechanism introduced in JDK 1.4.
The default access log format follows the W3C Extended Log File Format
with the following fields used:
Template
.
Constructor Summary | |
---|---|
LogService(boolean enabled)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getLogFormat()
Returns the format used. |
java.lang.String |
getLoggerName()
Returns the name of the JDK's logger to use when logging access calls. |
boolean |
isIdentityCheck()
Indicates if the identity check (as specified by RFC1413) is enabled. |
void |
setIdentityCheck(boolean identityCheck)
Indicates if the identity check (as specified by RFC1413) is enabled. |
void |
setLogFormat(java.lang.String format)
Sets the format to use when logging calls. |
void |
setLoggerName(java.lang.String name)
Sets the name of the JDK's logger to use when logging access calls. |
Methods inherited from class org.restlet.service.Service |
---|
isEnabled, isStarted, isStopped, setEnabled, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogService(boolean enabled)
enabled
- True if the service has been enabled.Method Detail |
---|
public java.lang.String getLogFormat()
for format syntax and variables.
public java.lang.String getLoggerName()
public boolean isIdentityCheck()
public void setIdentityCheck(boolean identityCheck)
identityCheck
- True if the identity check is enabled.public void setLogFormat(java.lang.String format)
format
- The format to use when loggin calls.for format syntax and variables.
public void setLoggerName(java.lang.String name)
name
- The name of the JDK's logger to use when logging access calls.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |