org.openmdx.kernel.log.impl
Class SharedFileLoggingMechanism
java.lang.Object
org.openmdx.kernel.log.impl.AbstractLoggingMechanism
org.openmdx.kernel.log.impl.AbstractFileLoggingMechanism
org.openmdx.kernel.log.impl.SharedFileLoggingMechanism
- All Implemented Interfaces:
- ManageableMechanism
- Direct Known Subclasses:
- SharedDatedFileLoggingMechanism, SharedFileStatisticsMechanism
public class SharedFileLoggingMechanism
- extends AbstractFileLoggingMechanism
This logging mechanism is shared among all of the different logs
which attempt to use it, instead of creating a new log file for every
log (which the "Unique" logging mechanisms do).
| Methods inherited from class org.openmdx.kernel.log.impl.AbstractFileLoggingMechanism |
close, getActiveEntities, getFileNameSuffixModifier, getPrintWriter, getReadableEntities, getReader, getRemoveableEntities, hasDateRolledOver, logEvent, open, removeEntity, rollLogOver, toString |
| Methods inherited from class org.openmdx.kernel.log.impl.AbstractLoggingMechanism |
acceptsNotificationLogs, acceptsPerformanceLogs, acceptsStandardLogs, acceptsStatisticLogs, createFormatter, createNotificationEvent, getDateOpend, getFormatter, getLoggers, isOpen, isSharedLog, notifyLogClosed, notifyLoggingLevelChange, notifyLoggingPerformanceChange, notifyLoggingStatisticsChange, notifyLogOpened, setFormatter, setNotification |
singleton
protected static SharedFileLoggingMechanism singleton
SharedFileLoggingMechanism
protected SharedFileLoggingMechanism()
getInstance
public static AbstractLoggingMechanism getInstance()
- Returns the mechanism object. The mechanism is shared so it returns a
singleton
- Returns:
- the mechanism singleton
isDatedLog
protected boolean isDatedLog()
- This file mechanism is not dated
- Specified by:
isDatedLog in class AbstractFileLoggingMechanism
- Returns:
- false to indicate that the mechanism is not dated
getName
public String getName()
- Returns the name of the mechanism.
- Overrides:
getName in class AbstractLoggingMechanism
- Returns:
- The mechanism name
This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.