|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 | |
---|---|
String |
getLogFormat()
Returns the format used. |
String |
getLoggerName()
Returns the name of the JDK's logger to use when logging calls. |
boolean |
isEnabled()
Indicates if the service should be enabled. |
boolean |
isIdentityCheck()
Indicates if the identity check (as specified by RFC1413) is enabled. |
void |
setEnabled(boolean enabled)
Indicates if the service should be enabled. |
void |
setIdentityCheck(boolean enabled)
Indicates if the identity check (as specified by RFC1413) is enabled. |
void |
setLogFormat(String format)
Sets the format to use when logging calls. |
void |
setLoggerName(String name)
Sets the name of the JDK's logger to use when logging calls. |
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 String getLogFormat()
for format syntax and variables.
public String getLoggerName()
public boolean isEnabled()
public boolean isIdentityCheck()
public void setLogFormat(String format)
format
- The format to use when loggin calls.for format syntax and variables.
public void setLoggerName(String name)
name
- The name of the JDK's logger to use when logging calls.public void setEnabled(boolean enabled)
enabled
- True if the service should be enabled.public void setIdentityCheck(boolean enabled)
enabled
- True if the identity check is enabled.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |