Skip to content

Commit

Permalink
feat(cron): added custom cron logger class
Browse files Browse the repository at this point in the history
The provided logger will allow developers to log to the cron log
directly, so it's easier to debug issue or long-running tasks.
  • Loading branch information
jeabakker committed Aug 4, 2023
1 parent b6f2565 commit 4e485ce
Show file tree
Hide file tree
Showing 7 changed files with 392 additions and 192 deletions.
6 changes: 6 additions & 0 deletions docs/guides/events-list.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ System events
**cron, <period>** |results|
Triggered by cron for each period.

The ``$params`` array will contain:

* ``time`` - the timestamp of when the cron command was started
* ``dt`` - the ``\DateTime`` object of when the cron command was started
* ``logger`` - instance of ``\Elgg\Logger\Cron`` to log any information to the cron log

**cron:intervals, system** |results|
Allow the configuration of custom cron intervals

Expand Down
Loading

0 comments on commit 4e485ce

Please sign in to comment.