RbUtils 0.13

org.ktc.rbutils.rb.check
Class DefaultLogger

java.lang.Object
  extended by org.ktc.rbutils.api.i18n.AbstractLocalized
      extended by org.ktc.rbutils.api.audit.AbstractDefaultLogger
          extended by org.ktc.rbutils.rb.check.DefaultLogger
All Implemented Interfaces:
EventListener, Logger, Localized
Direct Known Subclasses:
ConsoleLogger

public class DefaultLogger
extends AbstractDefaultLogger

Plain text logger for RbChecker.

Since:
RbUtils 0.4
Version:
$Revision: 1.5 $
Author:
redfish
See Also:
org.ktc.rbutils.audit.DefaultLogger

Field Summary
 
Fields inherited from class org.ktc.rbutils.api.audit.AbstractDefaultLogger
closeError, closeInfo, currentFilePath, errorWriter, infoWriter, taskname
 
Fields inherited from class org.ktc.rbutils.api.i18n.AbstractLocalized
classResource
 
Constructor Summary
DefaultLogger(OutputStream infoStream, boolean closeInfoAfterUse, OutputStream errorStream, boolean closeErrorAfterUse)
          Creates a new DefaultLogger instance.
 
Method Summary
 void addError(ProcessEvent event)
          Does nothing.
 
Methods inherited from class org.ktc.rbutils.api.audit.AbstractDefaultLogger
addException, addInfo, flushAndCloseStreams, getMsgWithFilePathPrefix, processEnded, processFileEnded, processFileStarted, processStarted
 
Methods inherited from class org.ktc.rbutils.api.i18n.AbstractLocalized
getMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLogger

public DefaultLogger(OutputStream infoStream,
                     boolean closeInfoAfterUse,
                     OutputStream errorStream,
                     boolean closeErrorAfterUse)
Creates a new DefaultLogger instance.

Parameters:
infoStream - the OutputStream for info messages
closeInfoAfterUse - auditFinished should close aInfoStream
errorStream - the OutputStream for error messages
closeErrorAfterUse - auditFinished should close aErrorStream
Method Detail

addError

public void addError(ProcessEvent event)
Does nothing. Lets subclasses implements this method if needed. Logs a process error which was discovered on a specific file.

Specified by:
addError in interface Logger
Overrides:
addError in class AbstractDefaultLogger
Parameters:
event - the event details.

Back to the RbUtils Home Page

Copyright © 2005-2009 RbUtils Project. All Rights Reserved.