Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

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);