org.infoglue.cms.util
Class FileLogger

java.lang.Object
  extended by org.infoglue.cms.util.FileLogger
All Implemented Interfaces:
NotificationListener

public class FileLogger
extends java.lang.Object
implements NotificationListener

This class is a class that logs a message to a Media somewhere (Mostly files). We should utilize log4j or some other logging framework later on.

Author:
Mattias Bogeblad

Constructor Summary
FileLogger()
          Default Constructor
 
Method Summary
 void notify(NotificationMessage notificationMessage)
          This method gets called when a new NotificationMessage is available.
 void setContextParameters(java.util.Map map)
          This method sets the context/arguments the Logger should operate with.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileLogger

public FileLogger()
Default Constructor

Method Detail

setContextParameters

public void setContextParameters(java.util.Map map)
This method sets the context/arguments the Logger should operate with. Could be debuglevels and stuff like that.

Specified by:
setContextParameters in interface NotificationListener

notify

public void notify(NotificationMessage notificationMessage)
This method gets called when a new NotificationMessage is available. I've decided to use the Java 1.4.1 Logging Api for this. Change this later to put these in a different file.

Specified by:
notify in interface NotificationListener


Copyright © 2005 InfoGlue.org All Rights Reserved.