NebulaLogger icon indicating copy to clipboard operation
NebulaLogger copied to clipboard

Log Retention Rules are not working

Open fentes opened this issue 3 years ago • 1 comments

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.

fentes avatar Aug 26 '22 06:08 fentes

Hi @fentes - everything in your screenshot looks correct to be, so I don't have a great explanation right now for why it's not working. Let me wrap up some other unrelated changes that I'm working on, and I'll revisit this plugin hopefully next week to see if I can figure out the issue. I'll let you know as soon as I have an answer (or if I have follow up questions).

jongpie avatar Aug 31 '22 00:08 jongpie