|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.w3c.jigsaw.http.Logger
public abstract class Logger
The Logger class is the abstract class that loggers must implement. You can (should be able to) use several loggers at the same time.
| Constructor Summary | |
|---|---|
Logger()
Construct a new Logger instance. |
|
| Method Summary | |
|---|---|
abstract void |
errlog(Client client,
java.lang.String msg)
Log an error on behalf of some client object in the error log. |
abstract void |
errlog(java.lang.String msg)
Log an error on behalf of the server object. |
abstract void |
initialize(httpd server)
Initialize this logger for the provided server. |
abstract void |
log(Request request,
Reply reply,
int nbytes,
long duration)
Log normally a full handled request. |
abstract void |
log(java.lang.String msg)
Log a message to the log. |
abstract void |
shutdown()
Shutdown this logger object. |
abstract void |
sync()
Flush any in core logger state back to disk. |
abstract void |
trace(Client client,
java.lang.String trace)
Log a client trace. |
abstract void |
trace(java.lang.String msg)
Log a server trace. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Logger()
| Method Detail |
|---|
public abstract void log(Request request,
Reply reply,
int nbytes,
long duration)
client - The client which made the request.request - The request that was handled.reply - The emitted reply to the client.nbytes - The number of bytes sent to this client.duration - The time it took to process the request.public abstract void log(java.lang.String msg)
msg - The message to log.
public abstract void errlog(Client client,
java.lang.String msg)
client - The client for which the error occured.msg - The error message to log.public abstract void errlog(java.lang.String msg)
msg - The message to emit.
public abstract void trace(Client client,
java.lang.String trace)
client - The client that wants to emit a trace.trace - The trace to log.public abstract void trace(java.lang.String msg)
msg - The trace to emit.public abstract void sync()
public abstract void shutdown()
public abstract void initialize(httpd server)
server - The server to which this logger should be initialized.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||