Return save details when calling saveLog() methods #242
Labels
Layer: Logger Engine
Items related to the core logging engine
Logging Source: Apex
Items related to using Logger within Apex
Logging Source: Flow
Items related to using Nebula Logger within Flow
Type: Enhancement
New feature or request
Currently, the method overloads
Logger.saveLog()
andLogger.saveLog(SaveMethod)
do not return anything - @Soliton321 had a great suggestion to have the method return the save results so that orgs can implement their own error handling. I think it should return a new custom inner class (LoggerSaveResult
or something similar) that includes relevant details for the save method (e.g., if usingEVENT_BUS
, it should include theList<Database.SaveResult> saveResults
, if usingQUEUEABLE
, it should include the queueable job ID, and so on).Originally posted by @Soliton321 in #234 (reply in thread)
The text was updated successfully, but these errors were encountered: