|
|||||||||
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.ConsoleTrace
public class ConsoleTrace
This implementation of TraceTarget
writes the trace to the
console (stdout
).
Constructor Summary | |
---|---|
ConsoleTrace()
|
Method Summary | |
---|---|
java.lang.String |
getTrace()
Not implemented for ConsoleTrace ! |
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 console. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConsoleTrace()
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 console.
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()
ConsoleTrace
!
Returns all trace messages as one large string.
getTrace
in interface TraceTarget
XException
- if any error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |