NebulaLogger

The most robust logger for Salesforce. Works with Apex, Lightning Components, Flow, Process Builder & Integrations. Designed for Salesforce admins, developers & architects.

View the Project on GitHub jongpie/NebulaLogger

LoggerStackTrace class

Class used for tracking & parsing stack traces

Logger

LogEntryBuilder


Constructors

LoggerStackTrace()

Constructor that automatically generates & parses stack trace information based on the calling code

LoggerStackTrace(Exception apexException)

Constructor that parses stack trace information from the provided Exception

Parameters
Param Description
apexException An instance of any Exception class

LoggerStackTrace(String apexStackTraceString)

Constructor that parses stack trace information from the provided String

Parameters
Param Description
apexStackTraceString The original stack trace value generated by the platform

LoggerStackTrace(SourceLanguage language, String sourceStackTraceString)


Enums

SourceLanguage

SourceMetadataType


Properties

LanguageSource

LocationString

ParsedStackTraceStringString

Sourcepublic


Methods

AnonymousBlock()public

ApexClass()public

ApexTrigger()public

AuraDefinitionBundle()public

LightningComponentBundle()public

ignoreOrigin(System.Type apexType)void

Adds the specified Apex type to the the current transaction's list of ignored origin locations. Any ignored types will be removed from the StackTrace__c field, and will be skipped when determining the log entry's origin location

Parameters
Param Description
apexType The Apex type of the class to ignore

ignoreOrigin(SourceLanguage language, String origin)void

Adds the specified string-based origin to the the current transaction's list of ignored origin locations for the specified source language. Any ignored types will be removed from the StackTrace__c field, and will be skipped when determining the log entry's origin location

Parameters
Param Description
language The source language (Apex or JavaScript)
origin The string-based name of the Apex type or lightning component name to ignore

ignoreOrigins(Set<System.Type> apexTypes)void

Adds the specified Apex types to the list of ignored origin locations for the current transaction. Any ignored types will be removed from the StackTrace__c field, and will be skipped when determining the log entry's origin location

Parameters
Param Description
apexTypes A Set containing the Apex types of the classes to ignore

Inner Classes

LoggerStackTrace.SourceMetadata class


Properties
ActionNameString
ApiNameString
LineNumberInteger
MetadataTypeSource