Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log Retention Rules are not working #354

Open
fentes opened this issue Aug 26, 2022 · 1 comment
Open

Log Retention Rules are not working #354

fentes opened this issue Aug 26, 2022 · 1 comment
Assignees
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

Comments

@fentes
Copy link

fentes commented Aug 26, 2022

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.

@jongpie
Copy link
Owner

jongpie commented Aug 31, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants