ak.err
Class LogToFile

java.lang.Object
  |
  +--ak.err.LogToFile

public class LogToFile
extends java.lang.Object
implements IF_LogMedia

This is implementor of interface IF_LogMedia logs to a log-file

Version:
V1.1 Copyright(c)2000 Alexej Kupin

Constructor Summary
LogToFile()
          Default constructor:
 
Method Summary
protected static void CheckFile(java.lang.String sPath, java.lang.String sSize)
          CheckFile: Checks the max-size of log-file
 void log(java.lang.String sMsg, java.lang.String sParam, java.lang.String sPath)
          creates the log The Parameters(sParam and sPath) are taken from the config-file
protected static void writeToFile(java.lang.String sPath, java.lang.String sMsg)
          Write to the Log-file:
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

LogToFile

public LogToFile()
Default constructor:
Method Detail

log

public void log(java.lang.String sMsg,
                java.lang.String sParam,
                java.lang.String sPath)
         throws java.lang.Exception
creates the log The Parameters(sParam and sPath) are taken from the config-file
Specified by:
log in interface IF_LogMedia

writeToFile

protected static void writeToFile(java.lang.String sPath,
                                  java.lang.String sMsg)
Write to the Log-file:

CheckFile

protected static void CheckFile(java.lang.String sPath,
                                java.lang.String sSize)
CheckFile: Checks the max-size of log-file