Function Hook_cron_log_purging->purge_log
Definitions
sources/hooks/systems/cron/log_purging.php
- Purge a particular log back to just a certain number of days.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $path | PATH | No | No | required parameter | N/A | N/A | Path to the log |
| $days_to_keep | integer | No | No | required parameter | N/A | N/A | Number of days to keep for |
Preview
Code (PHP)
/**
* Purge a particular log back to just a certain number of days.
*
* @param PATH $path Path to the log
* @param integer $days_to_keep Number of days to keep for
*/
protected function purge_log(string $path, int $days_to_keep)
* Purge a particular log back to just a certain number of days.
*
* @param PATH $path Path to the log
* @param integer $days_to_keep Number of days to keep for
*/
protected function purge_log(string $path, int $days_to_keep)

