%SYS
PurgeErrorsAndLogs Class Reference

This Task will purge errors (in the ^ERRORS global) that are older than the configured value. More...

Inheritance diagram for PurgeErrorsAndLogs:
Collaboration diagram for PurgeErrorsAndLogs:

Public Member Functions

_.Library.Status OnTask ()
 This method is responsible for executing the task. More...
 
- Public Member Functions inherited from Definition
_.Library.List GetSettings ()
 Return a serialized list of user-defined Property values for an instance of this Task as a $List. More...
 
_.Library.Status OnSubmit (_.Library.String pID, _.Library.String pSubmit)
 This callback is called when this form is submitted. More...
 
_.Library.Status SetSettings (_.Library.List pState)
 Called by the Task Manager prior to running OnTask() to set all Property values. More...
 

Static Public Attributes

 TaskName = None
 This Task will purge errors (in the ^ERRORS global) that are older than the configured value. More...
 
- Static Public Attributes inherited from Definition
 DOMAIN = None
 This class defines a task that can be executed by the Task Manager. More...
 
 RESOURCE = None
 This specifies a security resource and optional permission. More...
 
 TaskName = None
 This defines the user-visible name of this task. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Definition
_.Library.Boolean CheckPermission (_.Library.String taskClass, _.Library.String namespace, _.Library.Status sc)
 This method checks if the current process has the permission defined by the RESOURCE parameter for the given Task class. More...
 
_.Library.String GetCollectionType (_.Library.String propertyName, _.Library.String tCollection)
 Return a collection type for a property. More...
 
_.Library.String GetTaskName ()
 Returns the localized name of this task.
 

Detailed Description

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.

Member Function Documentation

◆ OnTask()

_.Library.Status OnTask ( )

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.

Reimplemented from Definition.

Member Data Documentation

◆ TaskName

TaskName = None
static

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.