com.netscape.certsrv.logging
Interface ILogEventFactory


public interface ILogEventFactory

An interface represents a log event factory. This factory will be responsible for creating and returning ILogEvent objects on demand.

Version:
$Revision: 1211 $, $Date: 2010-08-18 10:15:37 -0700 (Wed, 18 Aug 2010) $

Method Summary
 ILogEvent create(int evtClass, java.util.Properties prop, int source, int level, boolean multiline, java.lang.String msg, java.lang.Object[] params)
          Creates an event of a particular event type/class.
 void release(ILogEvent event)
          Releases previously created event.
 

Method Detail

create

ILogEvent create(int evtClass,
                 java.util.Properties prop,
                 int source,
                 int level,
                 boolean multiline,
                 java.lang.String msg,
                 java.lang.Object[] params)
Creates an event of a particular event type/class.

Parameters:
evtClass - The event type.
prop - The resource bundle.
source - The subsystem ID who creates the log event.
level - The severity of the log event.
multiline - The log message has more than one line or not.
msg - The detail message of the log.
params - The parameters in the detail log message.
Returns:
The created ILogEvent object.

release

void release(ILogEvent event)
Releases previously created event.

Parameters:
event - The log event.