org.openmdx.kernel.log.impl
Class SharedDatedFileStatisticsMechanism
java.lang.Object
org.openmdx.kernel.log.impl.AbstractLoggingMechanism
org.openmdx.kernel.log.impl.AbstractFileLoggingMechanism
org.openmdx.kernel.log.impl.SharedFileLoggingMechanism
org.openmdx.kernel.log.impl.SharedFileStatisticsMechanism
org.openmdx.kernel.log.impl.SharedDatedFileStatisticsMechanism
- All Implemented Interfaces:
- ManageableMechanism
public class SharedDatedFileStatisticsMechanism
- extends SharedFileStatisticsMechanism
This logging mechanism adds today's date to the shared log file name, and also
rolls logging over to a new file when dates change (the first new string
logged on a new date causes the current log file to close and a new log
file to be opened with today's date).
| Methods inherited from class org.openmdx.kernel.log.impl.AbstractFileLoggingMechanism |
close, getActiveEntities, getPrintWriter, getReadableEntities, getReader, getRemoveableEntities, hasDateRolledOver, logEvent, open, removeEntity, rollLogOver, toString |
| Methods inherited from class org.openmdx.kernel.log.impl.AbstractLoggingMechanism |
createNotificationEvent, getDateOpend, getFormatter, getLoggers, isOpen, isSharedLog, notifyLogClosed, notifyLoggingLevelChange, notifyLoggingPerformanceChange, notifyLoggingStatisticsChange, notifyLogOpened, setFormatter, setNotification |
singleton
protected static SharedDatedFileStatisticsMechanism singleton
SharedDatedFileStatisticsMechanism
protected SharedDatedFileStatisticsMechanism()
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 dated
- Overrides:
isDatedLog in class SharedFileStatisticsMechanism
- Returns:
- true to indicate that the mechanism is not dated
getName
public String getName()
- Returns the name of the mechanism.
- Overrides:
getName in class SharedFileStatisticsMechanism
- 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.