org.openmobileis.common.util.log
Class DefaultLogTracer

java.lang.Object
  extended byorg.openmobileis.common.util.log.DefaultLogTracer
All Implemented Interfaces:
LogTracer
Direct Known Subclasses:
FileLogTracer, FileOpenCloseLogTracer

public class DefaultLogTracer
extends java.lang.Object
implements LogTracer

Default tracer for log management Use to trace to the console

Since:
JDK1.1
Version:
1.0
Author:
P.Delrieu

Field Summary
protected  java.io.PrintStream outStream
           
 
Constructor Summary
DefaultLogTracer()
           
 
Method Summary
 void finalize()
          Called by the system.
 java.io.PrintStream getLogPrintStream()
           
 void setLogStream(java.io.PrintStream newStream)
          Set the static outpuStream used by trace methods by default outStream == System.out.
 void setLogTracerProperties(java.util.Properties props)
           
 void trace(int service, int priority, java.lang.String message)
          Trace the message to the stream defined showing the specified priority and service.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

outStream

protected java.io.PrintStream outStream
Constructor Detail

DefaultLogTracer

public DefaultLogTracer()
Method Detail

setLogTracerProperties

public void setLogTracerProperties(java.util.Properties props)
Specified by:
setLogTracerProperties in interface LogTracer

setLogStream

public void setLogStream(java.io.PrintStream newStream)
Set the static outpuStream used by trace methods by default outStream == System.out.

Specified by:
setLogStream in interface LogTracer

trace

public void trace(int service,
                  int priority,
                  java.lang.String message)
Trace the message to the stream defined showing the specified priority and service.

Specified by:
trace in interface LogTracer

getLogPrintStream

public java.io.PrintStream getLogPrintStream()
Specified by:
getLogPrintStream in interface LogTracer

finalize

public void finalize()
Called by the system.



Copyright 2005 e-Care. All Rights Reserved.