cpptools
Class ConsoleLogger

java.lang.Object
  extended by cpptools.AbstractLogger
      extended by cpptools.ConsoleLogger
All Implemented Interfaces:
EventHandler

public final class ConsoleLogger
extends AbstractLogger

Logs all events to System.err.

Author:
Mathieu Champlon

Constructor Summary
ConsoleLogger(Options options)
          Create an event output.
 
Method Summary
 void changed(java.lang.String filename)
          Specify the file being processed.
 void error(java.lang.String filename, java.lang.Throwable throwable, java.lang.String reason)
          Notify an error.
protected  void log(java.lang.String message)
          Log a given message.
 
Methods inherited from class cpptools.AbstractLogger
display, finished, started
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleLogger

public ConsoleLogger(Options options)
Create an event output.

Parameters:
options - program options
Method Detail

error

public void error(java.lang.String filename,
                  java.lang.Throwable throwable,
                  java.lang.String reason)
Notify an error.

Parameters:
filename - the location of the error
throwable - the error
reason - the description of the error

changed

public void changed(java.lang.String filename)
Specify the file being processed.

Parameters:
filename - the name of the fle

log

protected void log(java.lang.String message)
Log a given message.

Specified by:
log in class AbstractLogger
Parameters:
message - the message


Copyright © 2006-2007 null. All Rights Reserved.