Skip to content

Configurable Apex Debug Log syntax via Logger Settings

Compare
Choose a tag to compare
@jongpie jongpie released this 09 Sep 14:41
· 127 commits to main since this release
4938da6

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 of LogEntryEvent__e.OriginLocation__c, a line break, and then the contents of LogEntryEvent__e.Message__c.
  • ⚠️ For orgs that currently use Nebula Logger & are upgrading to this version, you will need to manually configure the new field LoggerSettings__c.SystemLogMessageFormat__c.