|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--dfischer.femtowebserver.lib.Stdout
Thread save library for log output to a print stream. Each output line contains additionally as prefix the name of the current thread (caller) and the current date and time. The log output will be displayed on System.out if no other print stream has been set with the method setLogStream().
Httpd.setLogStream(java.io.PrintStream),
setLogStream(java.io.PrintStream),
ZoneTime| Method Summary | |
static java.io.PrintStream |
getLogStream()
Returns the current print stream for the log output |
static void |
log()
Writes an empty line to the log output. |
static void |
log(byte[] binaryData)
Writes binary data as ASCII/TEXT to the log output. |
static void |
log(java.lang.String msg)
Writes a text line to the log output. |
static void |
log(java.lang.StringBuffer msg)
Writes a string buffer to the log output. |
static void |
log(java.lang.String preComment,
java.lang.Exception e)
Writes a stack trace of an exception to the log output. |
static void |
log(java.util.Vector msgVector)
Writes a Vector of Type java.lang.String to the log output. |
static void |
setLogStream(java.io.PrintStream logStream)
Sets the log output to an other print stream. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static void setLogStream(java.io.PrintStream logStream)
logStream - print stream for the log output or null, to disable the log output.public static java.io.PrintStream getLogStream()
public static void log()
public static void log(java.lang.String msg)
msg - text line to writepublic static void log(java.lang.StringBuffer msg)
msg - string buffer to writepublic static void log(java.util.Vector msgVector)
msgVector - Vector of Type java.lang.String to write
public static void log(java.lang.String preComment,
java.lang.Exception e)
preComment - inserts a text string at the start of every line of the stack trace. You may pass
null or an empty string to disable this behavior.e - exception whose stack trace will be writtenpublic static void log(byte[] binaryData)
binaryData - binary data to write as ASCII/TEXT dump
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||