Skip to content

Chaining log entries across multiple executions #370

Answered by jongpie
dschibster asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @dschibster - the parent transaction UUID works a little differently from how you're envisioning it, there is not a way to do exactly what you want. A Log__c record is meant to always reflect a single transaction in Salesforce, so when you have multiple transactions in a batch context (or queueable context), it's intentional behavior that multiple Log__c records are still generated - if the data was instead condensed into 1 Log__c record, there would be missing/inaccurate/misleading data on the condensed Log__c record, since a Log__c has data about a specific transaction.

Instead of condensing all LogEntry__c records into 1 single Log__c, Nebula Logger will still create separate Log__c

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by dschibster
Comment options

You must be logged in to vote
1 reply
@jongpie
Comment options

Comment options

You must be logged in to vote
1 reply
@jongpie
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Logging Source: Apex Items related to using Logger within Apex Layer: Logger Engine Items related to the core logging engine
2 participants