at.spardat.xma.boot.logger
Class LogHandlerFile

java.lang.Object
  extended byat.spardat.xma.boot.logger.LogHandlerBase
      extended byat.spardat.xma.boot.logger.LogHandlerFile
All Implemented Interfaces:
ILogHandler

public class LogHandlerFile
extends LogHandlerBase
implements ILogHandler

LogHandlerDefault


Field Summary
 
Fields inherited from class at.spardat.xma.boot.logger.LogHandlerBase
args, format, formatter, props, separator
 
Constructor Summary
protected LogHandlerFile()
           
 
Method Summary
 void close()
           
 java.lang.String getLogFileName()
          Get the full qualified name of the used log file.
 void publish(LogRecord record)
          Publish a LogRecord.
 void setProperties(java.util.Properties in)
           
 void writeToDisk(java.lang.String strMessage)
           
 
Methods inherited from class at.spardat.xma.boot.logger.LogHandlerBase
format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogHandlerFile

protected LogHandlerFile()
Method Detail

setProperties

public void setProperties(java.util.Properties in)
Specified by:
setProperties in interface ILogHandler
Overrides:
setProperties in class LogHandlerBase

publish

public void publish(LogRecord record)
Description copied from interface: ILogHandler
Publish a LogRecord.

The logging request was made initially to a Logger object, which initialized the LogRecord and forwarded it here.

The Handler is responsible for formatting the message, when and if necessary. The formatting should include localization.

Specified by:
publish in interface ILogHandler
Overrides:
publish in class LogHandlerBase

writeToDisk

public void writeToDisk(java.lang.String strMessage)

close

public void close()
Specified by:
close in interface ILogHandler
Overrides:
close in class LogHandlerBase

getLogFileName

public java.lang.String getLogFileName()
Get the full qualified name of the used log file.

Since:
1.6.0