Package net.sf.eBus.util.logging
Supplements
java.util.logging package with a
rolling log file handler, a pattern formatter and a logged
status report.
-
CalendarFileHandler: Extends theStreamHandlerclass. Places each day's log messages in a separate file, rolling over the log files at midnight. This handler also deletes any existing log files that are older than the specified age limit (in days). -
PatternFormatter: Extends theFormatterclass. Usesprintf-like format specifiers to layout how aLogRecordshould be formatted.The idea for this class came from the Apache Jakarta's Log4j project class
org.apache.log4j.PatternLayoutbut is in no way based on it. -
StatusReport: Logs an application status report at a specified interval. The report consists of generic system information followed by what each registeredStatusReporterappends to the report.
-
Interface Summary Interface Description StatusReporter Implement this interface when you want an object to append its information to the status report. -
Class Summary Class Description CalendarFileHandler Logs messages to a user-specified file, rolling over to a new file at midnight.NullHandler This handler quietly does nothing with the given log records.PatternFormatter FormatsLogRecords usingprintf-like format specifiers.StatusReport Writes a status report to a log at a specified interval. -
Enum Summary Enum Description StatusReport.ReportFrequency Enumerates the allowed status report frequencies: FIVE_MINUTE: generate a report every five minutes on the five minute.