irssibot.util.log
Class NullLog

java.lang.Object
  |
  +--irssibot.util.log.NullLog
All Implemented Interfaces:
CommonLog

public class NullLog
extends java.lang.Object
implements CommonLog

Null logger; discards all log messages.

Version:
$Name: $ $Revision: 1.2 $
Author:
Matti Dahlbom

Field Summary
private  java.util.Properties properties
          Init properties
 
Fields inherited from interface irssibot.util.log.CommonLog
PROPERTY_FILE_PATH_PROPERTY_NAME
 
Constructor Summary
NullLog()
           
 
Method Summary
 java.lang.String getPropertyFilePath()
          Returns path for property file from which this CommonLog was initialized.
 void init(java.util.Properties properties)
          Initializes this logger.
 void logMessage(java.lang.String message)
          Does nothing.
 void stop()
          Stops and deinits this logger.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

properties

private java.util.Properties properties
Init properties

Constructor Detail

NullLog

public NullLog()
Method Detail

init

public void init(java.util.Properties properties)
Initializes this logger.

Specified by:
init in interface CommonLog
Parameters:
properties - init properties, or null if none supplied

stop

public void stop()
Stops and deinits this logger.

Specified by:
stop in interface CommonLog

getPropertyFilePath

public java.lang.String getPropertyFilePath()
Returns path for property file from which this CommonLog was initialized.

Specified by:
getPropertyFilePath in interface CommonLog
Returns:
path to property file

logMessage

public void logMessage(java.lang.String message)
                throws LogException
Does nothing.

Specified by:
logMessage in interface CommonLog
Parameters:
message - preformatted log message to be written as it is
Throws:
LogException - if logging error occurs


IrssiBot (c) 2000-2002 Matti Dahlbom