irssibot.util.log
Class StdoutLog

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

public class StdoutLog
extends java.lang.Object
implements CommonLog

Logs to stdout.

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
StdoutLog()
           
 
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)
          Writes a log message to standard output (terminal).
 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

StdoutLog

public StdoutLog()
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
Writes a log message to standard output (terminal).

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