|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.xbus.base.core.trace.FileTrace
public class FileTrace
This implementation of TraceTarget
writes the trace to a file.
Configuration:
Chapter | Section | Key | Content |
---|---|---|---|
Base | FileTrace | Filename | Name of the file, where the trace is written. |
Constructor Summary | |
---|---|
FileTrace()
The constructor builds the name of the trace-file. |
Method Summary | |
---|---|
java.lang.String |
getTrace()
Returns all trace messages as one large string. |
void |
trace(int priority,
java.lang.Object message,
java.lang.Throwable t)
Writes the message , the priority and if
given the backtrace of the Throwable to the file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileTrace()
%XBUS_HOME%/log/Name_from_Configuration
Remark: Programs that use the FileTrace
must be
started with: java -Dxbus.home="%XBUS_HOME%"
Method Detail |
---|
public void trace(int priority, java.lang.Object message, java.lang.Throwable t)
message
, the priority
and if
given the backtrace of the Throwable
to the file.
It uses the class Formatter
.
trace
in interface TraceTarget
priority
- the priority after which the messages should be tracedmessage
- the message to be tracedt
- the stack trace of the Throwablepublic java.lang.String getTrace()
getTrace
in interface TraceTarget
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |