| java.lang.Object org.w3c.jigsaw.http.Logger
All known Subclasses: org.w3c.jigsaw.http.CommonLogger,
Logger | abstract public class Logger (Code) | | 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 | |
public | Logger() Construct a new Logger instance. |
Method Summary | |
abstract public void | errlog(Client client, String msg) Log an error on behalf of some client object in the error log. | abstract public void | errlog(String msg) Log an error on behalf of the server object. | abstract public void | initialize(httpd server) Initialize this logger for the provided server. | abstract public void | log(Request request, Reply reply, int nbytes, long duration) Log normally a full handled request. | abstract public void | log(String msg) Log a message to the log. | abstract public void | shutdown() Shutdown this logger object. | abstract public void | sync() Flush any in core logger state back to disk. | abstract public void | trace(Client client, String trace) Log a client trace. | abstract public void | trace(String msg) Log a server trace. |
Logger | public Logger()(Code) | | Construct a new Logger instance.
|
errlog | abstract public void errlog(Client client, String msg)(Code) | | Log an error on behalf of some client object in the error log.
Parameters: client - The client for which the error occured. Parameters: msg - The error message to log. |
errlog | abstract public void errlog(String msg)(Code) | | Log an error on behalf of the server object.
Parameters: msg - The message to emit. |
initialize | abstract public void initialize(httpd server)(Code) | | Initialize this logger for the provided server.
No call to any methods of the logger will be made before this
logger is initialized for some server.
Parameters: server - The server to which this logger should be initialized. |
log | abstract public void log(Request request, Reply reply, int nbytes, long duration)(Code) | | Log normally a full handled request.
Parameters: client - The client which made the request. Parameters: request - The request that was handled. Parameters: reply - The emitted reply to the client. Parameters: nbytes - The number of bytes sent to this client. Parameters: duration - The time it took to process the request. |
log | abstract public void log(String msg)(Code) | | Log a message to the log.
Parameters: msg - The message to log. |
shutdown | abstract public void shutdown()(Code) | | Shutdown this logger object.
Each server will close the shutdown method of the logger before
shuting itself down.
|
sync | abstract public void sync()(Code) | | Flush any in core logger state back to disk.
Some loggers may use memory cache before writing any data to the disk
this method ensures that there state is saved to stable storage.
|
trace | abstract public void trace(Client client, String trace)(Code) | | Log a client trace. The client may be in some error state, so all access
to the client parameter should be checked.
Parameters: client - The client that wants to emit a trace. Parameters: trace - The trace to log. |
trace | abstract public void trace(String msg)(Code) | | Log a server trace.
Parameters: msg - The trace to emit. |
|
|