org.openmdx.kernel.log.impl
Class StandardErrLoggingMechanism

java.lang.Object
  extended by org.openmdx.kernel.log.impl.AbstractLoggingMechanism
      extended by org.openmdx.kernel.log.impl.StandardErrLoggingMechanism
All Implemented Interfaces:
ManageableMechanism

public class StandardErrLoggingMechanism
extends AbstractLoggingMechanism

This logging mechanism logs errors to the System.err output stream. The mechanism synchronizes on the System.err object to synchronize output with other systems (as J2EE containers, ...)


Field Summary
 
Fields inherited from class org.openmdx.kernel.log.impl.AbstractLoggingMechanism
OPEN_DATE_FORMAT
 
Constructor Summary
protected StandardErrLoggingMechanism()
           
 
Method Summary
 boolean acceptsStatisticLogs()
          This mechanism accepts statistics logs
static AbstractLoggingMechanism getInstance()
          Returns the mechanism object.
 String getName()
          Returns the name of the mechanism.
protected  void logEvent(Log log, LogEvent event)
          Logs a log event.
 
Methods inherited from class org.openmdx.kernel.log.impl.AbstractLoggingMechanism
acceptsNotificationLogs, acceptsPerformanceLogs, acceptsStandardLogs, close, createFormatter, createNotificationEvent, getActiveEntities, getDateOpend, getFormatter, getLoggers, getReadableEntities, getReader, getRemoveableEntities, isOpen, isSharedLog, notifyLogClosed, notifyLoggingLevelChange, notifyLoggingPerformanceChange, notifyLoggingStatisticsChange, notifyLogOpened, open, removeEntity, setFormatter, setNotification, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StandardErrLoggingMechanism

protected StandardErrLoggingMechanism()
Method Detail

getInstance

public static AbstractLoggingMechanism getInstance()
Returns the mechanism object. The mechanism is shared so it returns a singleton

Returns:
the mechanism singleton

getName

public String getName()
Returns the name of the mechanism.

Overrides:
getName in class AbstractLoggingMechanism
Returns:
The mechanism name

acceptsStatisticLogs

public boolean acceptsStatisticLogs()
This mechanism accepts statistics logs

Overrides:
acceptsStatisticLogs in class AbstractLoggingMechanism
Returns:
true to indicate that the mechanism accepts statistics

logEvent

protected void logEvent(Log log,
                        LogEvent event)
Logs a log event.

Specified by:
logEvent in class AbstractLoggingMechanism
Parameters:
log - A logger
event - A log event


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.