Configurable Apex Debug Log syntax via Logger Settings
The output of System.debug()
can now be configured using merge field syntax in the new field LoggerSettings__c.SystemLogMessageFormat__c
- implemented by @jamessimone in PR #192 🥳!
- It uses Handlebars-esque syntax to refer to fields on the
LogEntryEvent__e
platform event. You can use curly braces to denote merge field logic, eg:{OriginLocation__c}\n{Message__c}
- this will output the contents ofLogEntryEvent__e.OriginLocation__c
, a line break, and then the contents ofLogEntryEvent__e.Message__c
. ⚠️ For orgs that currently use Nebula Logger & are upgrading to this version, you will need to manually configure the new fieldLoggerSettings__c.SystemLogMessageFormat__c
.