org.openmobileis.common.util.log
Class FileLogTracer

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

public class FileLogTracer
extends DefaultLogTracer

Implement a LogTracer that Log in a File. The File is define by specifing the property LOGFILE. Implements an archiving system. Define the property LOGDIRARCHIVE to define the directory where log are archived.

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

Field Summary
protected  java.io.FileOutputStream fileStream
           
protected  java.lang.String logFile
           
 
Fields inherited from class org.openmobileis.common.util.log.DefaultLogTracer
outStream
 
Constructor Summary
FileLogTracer()
           
 
Method Summary
 void setLogTracerProperties(java.util.Properties props)
          Two property are defined : LOGFILE : file where log are written.
 
Methods inherited from class org.openmobileis.common.util.log.DefaultLogTracer
finalize, getLogPrintStream, setLogStream, trace
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileStream

protected java.io.FileOutputStream fileStream

logFile

protected java.lang.String logFile
Constructor Detail

FileLogTracer

public FileLogTracer()
Method Detail

setLogTracerProperties

public void setLogTracerProperties(java.util.Properties props)
Two property are defined : LOGFILE : file where log are written. LOGDIRARCHIVE : directory where old log are archived.

Specified by:
setLogTracerProperties in interface LogTracer
Overrides:
setLogTracerProperties in class DefaultLogTracer


Copyright 2006 OpenMobileIS. All Rights Reserved.