org.openmdx.kernel.log.impl
Class StandardErrLoggingMechanism
java.lang.Object
org.openmdx.kernel.log.impl.AbstractLoggingMechanism
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, ...)
| 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 |
StandardErrLoggingMechanism
protected StandardErrLoggingMechanism()
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 loggerevent - 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.