at.spardat.xma.boot.logger
Class LogHandlerBase

java.lang.Object
  extended byat.spardat.xma.boot.logger.LogHandlerBase
All Implemented Interfaces:
ILogHandler
Direct Known Subclasses:
DefaultHandler, LogHandlerDefault, LogHandlerFile

public abstract class LogHandlerBase
extends java.lang.Object
implements ILogHandler

LogHandlerDefault


Field Summary
protected  java.lang.Object[] args
           
protected  java.lang.String format
           
protected  java.text.MessageFormat formatter
           
protected  java.util.Properties props
           
protected  java.lang.String separator
           
 
Constructor Summary
protected LogHandlerBase()
           
 
Method Summary
 void close()
           
protected  java.lang.String format(LogRecord record)
           
 void publish(LogRecord record)
          Publish a LogRecord.
 void setProperties(java.util.Properties in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

formatter

protected java.text.MessageFormat formatter

args

protected java.lang.Object[] args

format

protected java.lang.String format

separator

protected java.lang.String separator

props

protected java.util.Properties props
Constructor Detail

LogHandlerBase

protected LogHandlerBase()
Method Detail

setProperties

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

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
Parameters:
record - description of the log event

close

public void close()
Specified by:
close in interface ILogHandler

format

protected java.lang.String format(LogRecord record)