Skip to content

Garbage Collector

Sean Fisher edited this page May 14, 2020 · 2 revisions

The Log Post Type Handler (which logs to a seperate log post type) has a garbage collector to cleanup old logs. By default it will delete posts after 7 days.

Filters

ai_logger_garbage_collector_max_age

Integer. Max age in days to keep logs, default is 7.

ai_logger_garbage_collector_enabled

Boolean. Flag to enable the Garbage Collector which will delete logs after a set number of days. Default is true.

Clone this wiki locally