Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 893 Bytes

22_Logging.md

File metadata and controls

37 lines (25 loc) · 893 Bytes

Logging

image

Jobs Bundle comes with a dedicated log table.

Clean Up Task

Logs will be removed after 30 days. Change the expiration via configuration:

jobs:
    log_expiration_days: 10

Custom Clean-Up

Object

Every Log-panel comes with a "Cleanup" button. It will remove logs bounded to given connector and object only!

Global Flush

There is also a global log flush workflow. Go to the global jobs config panel and hit the "Flush all logs" button at the left top corner.

Be aware this will truncate the logs tables and can't be undone!

Add Log

$log = $this->logManager->createNewForConnector('your_connnector');

$log->setType('success');
$log->setMessage('My Message');
$log->setObjectId(667);

$this->logManager->update($log);