Description
Performs two level filtering of the log file to keep the file manageable. The daemon performs filtering based on two dates that are generated from configuration variables. An entry in the log file is deleted if it is too old, or if it is past a certain date and is deemed unimportant.
Configuration Variables
deleteAllAfterNDaysA number that represents the max number of days that any entry may stay in the log file. If any entry has a date that is older than the data generated from this variable then it is deleted. Default is 5 days.saveExceptionsOnlyAfterNDaysA number that represents the max number of days that unimportant entries may stay in the log file. If an entry has a date that is older than the date generated from this variable, and it is NOT an entry regarding an exception or assertion, then it is deleted. Default is 3 days.mailLogToNOTE: saveExceptionsOnlyAfterNDays < deleteAllAfterNDays
An email address where a copy of the filtered log file will be mailed.
How it works
The LogFilter daemon creates two dates based upon the configuration variables. A method called logFilter contained in the Alarm class is then called. All filtering is performed in the Alarm class. When the method call returns the new log.txt file has been created. The daemon then emails a copy of the file to the address provided in the configuration variables.First Available: Build 24Revised 11/19/97