org.jlf.log.fileMechanisms
Class SharedDatedFileLoggingMechanism
java.lang.Object
|
+--org.jlf.log.AbstractLoggingMechanism
|
+--org.jlf.log.fileMechanisms.AbstractFileLoggingMechanism
|
+--org.jlf.log.fileMechanisms.SharedFileLoggingMechanism
|
+--org.jlf.log.fileMechanisms.SharedDatedFileLoggingMechanism
- public class SharedDatedFileLoggingMechanism
- extends SharedFileLoggingMechanism
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.jlf.log.AbstractLoggingMechanism |
closeForLog, compactCurrentDate, currentDate, currentTime, getLoggingMechanismForString, getName, hasDateRolledOver, isSharedLog, logString, notifyLogClosed, notifyLoggingLevelChange, notifyLogOpened, openForLog, rollLogOver |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
singleton
protected static SharedDatedFileLoggingMechanism singleton
SharedDatedFileLoggingMechanism
public SharedDatedFileLoggingMechanism()
getInstance
public static AbstractLoggingMechanism getInstance()
isDatedLog
protected boolean isDatedLog()
- Description copied from class:
AbstractLoggingMechanism
- Mechanisms can be dated or non-dated. If dated, the log
needs to have a date appended to a
file name (if it has one) and it must be rolled over to a new
one when the current date changes. The default setting is
non-dated, this method must be overridden when dated.
- Overrides:
isDatedLog
in class AbstractLoggingMechanism