Skip to content

Log Retention Rules are not working #354

Open
@fentes

Description

@fentes

Package Edition of Nebula Logger

Unlocked Package

Package Version of Nebula Logger

Main: 4.7.8 RetentionRules: 0.9

New Bug Summary

Hey Jongpie,

we are currently setting up retention rules, but somehow it is not changing the Retention Date on the Log__c. First I thought that my conditions are wrong, but the issue exists also with the sample rules:

image
So the date should be set to 90 days in the future, when Scenario = "feature A" and there is at least one error.

So I run following short anonymous apex script
Logger.error('my Log message'); Logger.setScenario('feature A'); Logger.saveLog();

Result:
The Retention Date is null.
If I set a default retention date via Logger Settings, the retention date is set, but to the default date.

Metadata

Metadata

Assignees

Labels

Feature: Log RetentionItems related to LogBatchPurger or LogBatchPurgeSchedulerPlugin: Log Retention RulesItems related to the plugin Log Retention RulesType: BugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions