Log Retention Rules are not working #354
Labels
Feature: Log Retention
Items related to LogBatchPurger or LogBatchPurgeScheduler
Plugin: Log Retention Rules
Items related to the plugin Log Retention Rules
Type: Bug
Something isn't working
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:
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.
The text was updated successfully, but these errors were encountered: