Package org.logevents.observers
Class DateRollingLogEventObserver
- java.lang.Object
-
- org.logevents.core.AbstractFilteredLogEventObserver
-
- org.logevents.observers.FileLogEventObserver
-
- org.logevents.observers.DateRollingLogEventObserver
-
- All Implemented Interfaces:
AutoCloseable
,LogEventObserver
public class DateRollingLogEventObserver extends FileLogEventObserver
Log events to a file with the date appended to the fileName pattern.- Author:
- Johannes Brodwall
-
-
Constructor Summary
Constructors Constructor Description DateRollingLogEventObserver(String fileName)
DateRollingLogEventObserver(String filename, LogEventFormatter formatter)
DateRollingLogEventObserver(Map<String,String> properties, String prefix)
DateRollingLogEventObserver(Configuration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Path
getFilename(LogEvent logEvent)
-
Methods inherited from class org.logevents.observers.FileLogEventObserver
close, createFormatter, defaultFilename, doLogEvent, toString
-
Methods inherited from class org.logevents.core.AbstractFilteredLogEventObserver
configureFilter, filteredOn, getCondition, getThreshold, isEnabled, logEvent, setCondition, setFilter, setThreshold, shouldLogEvent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.logevents.LogEventObserver
isEnabled, stream, toList
-
-
-
-
Constructor Detail
-
DateRollingLogEventObserver
public DateRollingLogEventObserver(String filename, LogEventFormatter formatter)
-
DateRollingLogEventObserver
public DateRollingLogEventObserver(String fileName)
-
DateRollingLogEventObserver
public DateRollingLogEventObserver(Configuration configuration)
-
-
Method Detail
-
getFilename
protected Path getFilename(LogEvent logEvent)
- Overrides:
getFilename
in classFileLogEventObserver
-
-