class %SYS.Task.PurgeErrorsAndLogs extends %SYS.Task.Definition

This Task will purge errors (in the ^ERRORS global) that are older than the configured value.
It also renames the messages.log file if it is larger than the configured maximum size.
On a MultiValue system it also renames the mv.log file if it grows too large.
This Task is normally run nightly.


Parameters Properties Methods Queries Indices ForeignKeys Triggers
1 1


%RunDate %RunTime
%AddToSaveSet %ClassIsLatestVersion %ClassName %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IsA %IsModified %New
%NormalizeObject %ObjectModified %OriginalNamespace %PackageName
%RemoveFromSaveSet %SerializeObject %SetModified %ValidateObject
GetCollectionType GetPropertyName GetSettings GetTaskName
OnSubmit OnTask SetSettings


parameter TaskName = "PurgeErrorsAndLogs";
This defines the user-visible name of this task. It is defined in the subclasses.


method OnTask() as %Status
This method is responsible for executing the task.
At the scheduled time, the Task Manager creates an instance of this object, sets any property values using the stored "settings" for the task, and then invokes this method to execute the task.
Copyright © 1997-2020 InterSystems Corporation, Cambridge, MA