fr.umlv.tatoo.cc.common.log
Class Reporter

java.lang.Object
  extended by fr.umlv.tatoo.cc.common.log.Reporter
Direct Known Subclasses:
LoggerReporter

public abstract class Reporter
extends Object

A reporter is able to report a specific Info by providing an implementation of the method report(Info). Futhermore the fact that the info is reported or not depends on the reporter log level and the info log level. Reporter are associated to a thread using ReporterFactory.installCurrentReporter(Reporter).

Author:
Remi

Constructor Summary
protected Reporter()
          Creates a reporter.
 
Method Summary
abstract  Level getLogLevel()
          Returns the log level of the current reporter.
abstract  void report(Info info)
          Reports informations.
abstract  void setLogLevel(Level level)
          Changes the log level of the current reporter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Reporter

protected Reporter()
Creates a reporter.

Method Detail

setLogLevel

public abstract void setLogLevel(Level level)
Changes the log level of the current reporter.

Parameters:
level - the new log level.

getLogLevel

public abstract Level getLogLevel()
Returns the log level of the current reporter.

Returns:
the log level of the current reporter.

report

public abstract void report(Info info)
Reports informations.

Parameters:
info - the infor
See Also:
Info