| Constructor and description |
|---|
Logger
(java.io.File logfile)Constructor; creates (if needed) a new Thread, which will write new log-entries into the logfile using a queue |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
access(int code, java.lang.String file, java.lang.String ip)Log an access (200, 304, ...) |
|
void |
error(int code, java.lang.String file, java.lang.String ip)Log an error (403, 404, ...) |
|
void |
exception(java.lang.String message)Internal error / exception |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructor; creates (if needed) a new Thread, which will write new log-entries into the logfile using a queue
logfile - log-file to useLog an access (200, 304, ...)
code - HTTP-status-codefile - Accessed fileip - Client's IP-addressLog an error (403, 404, ...)
code - HTTP-status-codefile - Accessed fileip - Client's IP-addressInternal error / exception
message - Exception's message