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

java.lang.Object
  extended by fr.umlv.tatoo.cc.common.log.Reporter
      extended by fr.umlv.tatoo.cc.common.log.LoggerReporter

public class LoggerReporter
extends Reporter

A reporter that use Logger to report informations.

Author:
Remi

Constructor Summary
LoggerReporter()
          Create a reporter with level Level.INFO as default log level.
 
Method Summary
 Level getLogLevel()
          Returns the log level of the current reporter.
 void report(Info info)
          Reports informations.
 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

LoggerReporter

public LoggerReporter()
Create a reporter with level Level.INFO as default log level.

Method Detail

setLogLevel

public void setLogLevel(Level level)
Description copied from class: Reporter
Changes the log level of the current reporter.

Specified by:
setLogLevel in class Reporter
Parameters:
level - the new log level.

getLogLevel

public Level getLogLevel()
Description copied from class: Reporter
Returns the log level of the current reporter.

Specified by:
getLogLevel in class Reporter
Returns:
the log level of the current reporter.

report

public void report(Info info)
Description copied from class: Reporter
Reports informations.

Specified by:
report in class Reporter
Parameters:
info - the infor
See Also:
Info