Tapping into Logger class for custom fields / Filtering based on Scenario #431
dschibster
started this conversation in
Ideas
Replies: 1 comment
-
Hi @dschibster, thanks again for your patience on my very late response! I think there may need to be some enhancements to Nebula Logger to make your plugin easier to implement
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there @jongpie !
I just today received a request to integrate sfdx-batch-orchestrator with NebulaLogger, which I think is a pretty great idea but there are a few things where I would appreciate some pointers.
For the things that are currently done on Batch Apex Status Events that I send out, I should be able to simply create a Plugin given the framework you already expose, however when it comes to discoverability I am a little stumped right now so I hope you can help me a little. :)
Logs in Batch Orchestrator are discovered by associating both the Schedule and Job Id (records in this case) to the Log Entry, grouping them based on the same Async Apex Job Id and creating the Parent before linking Children to it. It's a little finicky because the entire creation process is offset into the Platform Event.
I was trying to come up with something that can replicate this behavior somehow, and finding the Record on the FlexiPage using the Related Log Entries Component alleviates things, but it doesn't quite hit the mark. Are there plans to create a similar LWC but by e.g. using a Scenario as a parameter to input, giving out Logs? I know, asking a lot here. :D Otherwise I might just take a look for the purposes of this integration myself.
Last thing. discoverability as mentioned hinges on having similar Ids currently, which to some extent I am able to alleviate by using the Nebula Logger which creates Log + Child Entries all at once, but the biggest help would actually be to be able to tap into the LogEntryBuilder or to add additional fields to the Logger class in order to put Lookups / Custom Fields onto the Parent Log. This would help a lot in bringing everything together. Do you have any suggestions on how to tackle this issue?
Any feedback is welcome. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions