andyLib v0.9

it.andynaz.log
Class NullLogger

java.lang.Object
  extended by it.andynaz.log.Logger
      extended by it.andynaz.log.NullLogger

public class NullLogger
extends Logger

This logger does nothing. Used to suppress all logs in a program that uses the andyLog project.

Version:
2013/12/18
Author:
andynaz

Field Summary
 
Fields inherited from class it.andynaz.log.Logger
dateFormat, level, name, separator, useDate, useLevel
 
Constructor Summary
NullLogger(ConfigMgr config)
          Creates an instance.
NullLogger(String name, ConfigMgr config)
          Creates an instance with a name.
 
Method Summary
 void log(Exception e)
          Does nothing.
 void log(Exception e, Level level)
          Does nothing.
 void log(String log)
          Does nothing.
 void log(String log, Level level)
          Does nothing.
 
Methods inherited from class it.andynaz.log.Logger
getDate, getPrefix, getPrefix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullLogger

public NullLogger(ConfigMgr config)
Creates an instance.

Parameters:
config - configuration (will not be used)

NullLogger

public NullLogger(String name,
                  ConfigMgr config)
Creates an instance with a name.

Parameters:
name - logger's name (will not be used)
config - configuration (will not be used)
Method Detail

log

public void log(String log,
                Level level)
Does nothing.

Overrides:
log in class Logger
Parameters:
log - log (will not be used)
level - level of the log (will not be used)

log

public void log(String log)
Does nothing.

Overrides:
log in class Logger
Parameters:
log - log (will not be used)

log

public void log(Exception e)
Does nothing.

Overrides:
log in class Logger
Parameters:
e - exception to log (will not be used)

log

public void log(Exception e,
                Level level)
Does nothing.

Overrides:
log in class Logger
Parameters:
e - exception to log (will not be used)
level - level of the log (will not be used)

andyLib v0.9

© 2013 andynaz - http://andynaz.altervista.org