Jobs Bundle comes with a dedicated log table.
Logs will be removed after 30 days
. Change the expiration via configuration:
jobs:
log_expiration_days: 10
Every Log-panel comes with a "Cleanup" button. It will remove logs bounded to given connector and object only!
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!
$log = $this->logManager->createNewForConnector('your_connnector');
$log->setType('success');
$log->setMessage('My Message');
$log->setObjectId(667);
$this->logManager->update($log);