ontea.common
Class Report

java.lang.Object
  extended by ontea.common.Report

public class Report
extends java.lang.Object

Handeling message reporting to the text file

Author:
Michal Laclavik

Field Summary
private static java.io.FileWriter fw
           
private static org.apache.log4j.Logger log
           
 
Constructor Summary
Report(java.lang.String filename)
          opening report file for writing it need to be closed by close() method
 
Method Summary
 void close()
           
 void report(java.lang.String msg)
          writing message to the text file
 void timeReport(java.lang.String msg)
          writing message to the text file also with time in milisec
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.log4j.Logger log

fw

private static java.io.FileWriter fw
Constructor Detail

Report

public Report(java.lang.String filename)
opening report file for writing it need to be closed by close() method

Parameters:
filename - name of the file where messages are stored
Method Detail

timeReport

public void timeReport(java.lang.String msg)
writing message to the text file also with time in milisec

Parameters:
msg -

report

public void report(java.lang.String msg)
writing message to the text file

Parameters:
msg -

close

public void close()