|
| 1 | +--- |
| 2 | +layout: default |
| 3 | +--- |
| 4 | + |
| 5 | +## LoggerStackTrace class |
| 6 | + |
| 7 | +Class used for tracking & parsing stack traces |
| 8 | + |
| 9 | +### Related |
| 10 | + |
| 11 | +[Logger](Logger) |
| 12 | + |
| 13 | +LogEntryBuilder |
| 14 | + |
| 15 | +--- |
| 16 | + |
| 17 | +### Constructors |
| 18 | + |
| 19 | +#### `LoggerStackTrace()` |
| 20 | + |
| 21 | +Constructor that automatically generates & parses stack trace information based on the calling code |
| 22 | + |
| 23 | +#### `LoggerStackTrace(Exception apexException)` |
| 24 | + |
| 25 | +Constructor that parses stack trace information from the provided `Exception` |
| 26 | + |
| 27 | +##### Parameters |
| 28 | + |
| 29 | +| Param | Description | |
| 30 | +| --------------- | ------------------------------------ | |
| 31 | +| `apexException` | An instance of any `Exception` class | |
| 32 | + |
| 33 | +#### `LoggerStackTrace(String apexStackTraceString)` |
| 34 | + |
| 35 | +Constructor that parses stack trace information from the provided `String` |
| 36 | + |
| 37 | +##### Parameters |
| 38 | + |
| 39 | +| Param | Description | |
| 40 | +| ---------------------- | -------------------------------------------------------- | |
| 41 | +| `apexStackTraceString` | The original stack trace value generated by the platform | |
| 42 | + |
| 43 | +#### `LoggerStackTrace(SourceLanguage language, String sourceStackTraceString)` |
| 44 | + |
| 45 | +--- |
| 46 | + |
| 47 | +### Enums |
| 48 | + |
| 49 | +#### SourceLanguage |
| 50 | + |
| 51 | +#### SourceMetadataType |
| 52 | + |
| 53 | +--- |
| 54 | + |
| 55 | +### Properties |
| 56 | + |
| 57 | +#### `Language` → `Source` |
| 58 | + |
| 59 | +#### `Location` → `String` |
| 60 | + |
| 61 | +#### `ParsedStackTraceString` → `String` |
| 62 | + |
| 63 | +#### `Source` → `public` |
| 64 | + |
| 65 | +--- |
| 66 | + |
| 67 | +### Methods |
| 68 | + |
| 69 | +#### `AnonymousBlock()` → `public` |
| 70 | + |
| 71 | +#### `ApexClass()` → `public` |
| 72 | + |
| 73 | +#### `ApexTrigger()` → `public` |
| 74 | + |
| 75 | +#### `AuraDefinitionBundle()` → `public` |
| 76 | + |
| 77 | +#### `LightningComponentBundle()` → `public` |
| 78 | + |
| 79 | +#### `ignoreOrigin(System.Type apexType)` → `void` |
| 80 | + |
| 81 | +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 |
| 82 | + |
| 83 | +##### Parameters |
| 84 | + |
| 85 | +| Param | Description | |
| 86 | +| ---------- | ------------------------------------ | |
| 87 | +| `apexType` | The Apex type of the class to ignore | |
| 88 | + |
| 89 | +#### `ignoreOrigin(SourceLanguage language, String origin)` → `void` |
| 90 | + |
| 91 | +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 |
| 92 | + |
| 93 | +##### Parameters |
| 94 | + |
| 95 | +| Param | Description | |
| 96 | +| ---------- | ---------------------------------------------------------------------------- | |
| 97 | +| `language` | The source language (Apex or JavaScript) | |
| 98 | +| `origin` | The string-based name of the Apex type or lightning component name to ignore | |
| 99 | + |
| 100 | +#### `ignoreOrigins(Set<System.Type> apexTypes)` → `void` |
| 101 | + |
| 102 | +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 |
| 103 | + |
| 104 | +##### Parameters |
| 105 | + |
| 106 | +| Param | Description | |
| 107 | +| ----------- | ---------------------------------------------------------- | |
| 108 | +| `apexTypes` | A `Set` containing the Apex types of the classes to ignore | |
| 109 | + |
| 110 | +--- |
| 111 | + |
| 112 | +### Inner Classes |
| 113 | + |
| 114 | +#### LoggerStackTrace.SourceMetadata class |
| 115 | + |
| 116 | +--- |
| 117 | + |
| 118 | +##### Properties |
| 119 | + |
| 120 | +###### `ActionName` → `String` |
| 121 | + |
| 122 | +###### `ApiName` → `String` |
| 123 | + |
| 124 | +###### `LineNumber` → `Integer` |
| 125 | + |
| 126 | +###### `MetadataType` → `Source` |
| 127 | + |
| 128 | +--- |
0 commit comments