Found issue in Error Logging #299
-
Hi @jamessimone, Starting as a discussion but may be this is an issue. Debug Logs from the Custom Logger Debug Statement Success Printed for a failed transaction. Debug Logs of the FlowOutput(received after List<Rollup.FlowOutput> innerOutputs = Rollup.performRollup(flowInputList);) Null Pointer exception |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@jayeshtejwani the default behavior of the included logger is to only print messages to the apex debug logs. I would look at the implementation for the actual Custom Object logger if you’re interested in seeing how to save the logged inputs to a custom object. Not all logging within Apex Rollup is going to be logged in the event of an uncaught exception, but the example you’re using is with an exception outside of Apex Rollup, so … it has to be caught/handled outside of Apex Rollup. The library isn’t mean to be an end-all logging solution for the rest of your org, or for problems that occur elsewhere in your flows/Apex. For that, I would highly recommend the usage of Nebula Logger. |
Beta Was this translation helpful? Give feedback.
@jayeshtejwani the default behavior of the included logger is to only print messages to the apex debug logs. I would look at the implementation for the actual Custom Object logger if you’re interested in seeing how to save the logged inputs to a custom object. Not all logging within Apex Rollup is going to be logged in the event of an uncaught exception, but the example you’re using is with an exception outside of Apex Rollup, so … it has to be caught/handled outside of Apex Rollup. The library isn’t mean to be an end-all logging solution for the rest of your org, or for problems that occur elsewhere in your flows/Apex. For that, I would highly recommend the usage of Nebula Logger.