Skip to content

Commit 62ceb99

Browse files
Added new field WasLoggedByCurrentUser__c on Log Entry (#981)
* Resolved #970 by adding new field LogEntry__c.WasLoggedByCurrentUser__c and new list view MyGeneratedLogEntries --------- Co-authored-by: Jonathan Gillespie <jonathan.c.gillespie@gmail.com>
1 parent 325a258 commit 62ceb99

9 files changed

Lines changed: 51 additions & 10 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55

66
The most robust observability solution for Salesforce experts. Built 100% natively on the platform, and designed to work seamlessly with Apex, Lightning Components, Flow, OmniStudio, and integrations.
77

8-
## Unlocked Package - v4.18.1
8+
## Unlocked Package - v4.18.2
99

10-
[![Install Unlocked Package in a Sandbox](./images/btn-install-unlocked-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04tg70000008GVpAAM)
11-
[![Install Unlocked Package in Production](./images/btn-install-unlocked-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04tg70000008GVpAAM)
10+
[![Install Unlocked Package in a Sandbox](./images/btn-install-unlocked-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04tg70000008YZBAA2)
11+
[![Install Unlocked Package in Production](./images/btn-install-unlocked-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04tg70000008YZBAA2)
1212
[![View Documentation](./images/btn-view-documentation.png)](https://github.com/jongpie/NebulaLogger/wiki)
1313

14-
`sf package install --wait 20 --security-type AdminsOnly --package 04tg70000008GVpAAM`
14+
`sf package install --wait 20 --security-type AdminsOnly --package 04tg70000008YZBAA2`
1515

1616
---
1717

nebula-logger/core.package.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,7 @@
539539
<members>LogEntry__c.TriggerSObjectType__c</members>
540540
<members>LogEntry__c.Trigger__c</members>
541541
<members>LogEntry__c.UniqueId__c</members>
542+
<members>LogEntry__c.WasLoggedByCurrentUser__c</members>
542543
<members>LogStatus__mdt.IsActive__c</members>
543544
<members>LogStatus__mdt.IsClosed__c</members>
544545
<members>LogStatus__mdt.IsResolved__c</members>
@@ -882,6 +883,7 @@
882883
<members>LogEntry__c.AllOmniStudioLogEntries</members>
883884
<members>LogEntry__c.AllRestRequestLogEntries</members>
884885
<members>LogEntry__c.AllRestResponseLogEntries</members>
886+
<members>LogEntry__c.MyGeneratedLogEntries</members>
885887
<members>LogStatus__mdt.All</members>
886888
<members>Log__c.AllAsynchronousLogs</members>
887889
<members>Log__c.AllBatchLogs</members>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
3+
<fullName>WasLoggedByCurrentUser__c</fullName>
4+
<businessStatus>Active</businessStatus>
5+
<complianceGroup>PII;GDPR;CCPA</complianceGroup>
6+
<formula>Log__r.WasLoggedByCurrentUser__c</formula>
7+
<formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
8+
<label>Logged By Current User</label>
9+
<securityClassification>Confidential</securityClassification>
10+
<trackTrending>false</trackTrending>
11+
<type>Checkbox</type>
12+
</CustomField>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<ListView xmlns="http://soap.sforce.com/2006/04/metadata">
3+
<fullName>MyGeneratedLogEntries</fullName>
4+
<columns>NAME</columns>
5+
<columns>Log__c</columns>
6+
<columns>LoggingLevel__c</columns>
7+
<columns>LoggedByUsernameLink__c</columns>
8+
<columns>ProfileLink__c</columns>
9+
<columns>Message__c</columns>
10+
<columns>OriginType__c</columns>
11+
<columns>OriginLocation__c</columns>
12+
<columns>RecordDetailedLink__c</columns>
13+
<columns>Timestamp__c</columns>
14+
<filterScope>Everything</filterScope>
15+
<filters>
16+
<field>WasLoggedByCurrentUser__c</field>
17+
<operation>equals</operation>
18+
<value>1</value>
19+
</filters>
20+
<label>My Generated Log Entries</label>
21+
</ListView>

nebula-logger/core/main/log-management/permissionsets/LoggerEndUser.permissionset-meta.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,11 @@
777777
<field>LogEntry__c.UniqueId__c</field>
778778
<readable>true</readable>
779779
</fieldPermissions>
780+
<fieldPermissions>
781+
<editable>false</editable>
782+
<field>LogEntry__c.WasLoggedByCurrentUser__c</field>
783+
<readable>true</readable>
784+
</fieldPermissions>
780785
<fieldPermissions>
781786
<editable>false</editable>
782787
<field>Log__c.ApiReleaseNumber__c</field>

nebula-logger/core/main/logger-engine/classes/Logger.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
global with sharing class Logger {
1616
// There's no reliable way to get the version number dynamically in Apex
1717
@TestVisible
18-
private static final String CURRENT_VERSION_NUMBER = 'v4.18.1';
18+
private static final String CURRENT_VERSION_NUMBER = 'v4.18.2';
1919
private static final System.LoggingLevel FALLBACK_LOGGING_LEVEL = System.LoggingLevel.DEBUG;
2020
private static final List<LogEntryEventBuilder> LOG_ENTRIES_BUFFER = new List<LogEntryEventBuilder>();
2121
private static final String MISSING_SCENARIO_ERROR_MESSAGE = 'No logger scenario specified. A scenario is required for logging in this org.';

nebula-logger/core/main/logger-engine/lwc/logger/loggerService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import LoggerServiceTaskQueue from './loggerServiceTaskQueue';
1010
import getSettings from '@salesforce/apex/ComponentLogger.getSettings';
1111
import saveComponentLogEntries from '@salesforce/apex/ComponentLogger.saveComponentLogEntries';
1212

13-
const CURRENT_VERSION_NUMBER = 'v4.18.1';
13+
const CURRENT_VERSION_NUMBER = 'v4.18.2';
1414

1515
const CONSOLE_OUTPUT_CONFIG = {
1616
messagePrefix: `%c Nebula Logger ${CURRENT_VERSION_NUMBER} `,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nebula-logger",
3-
"version": "4.18.1",
3+
"version": "4.18.2",
44
"description": "The most robust logger for Salesforce. Works with Apex, Lightning Components, Flow, Process Builder & Integrations. Designed for Salesforce admins, developers & architects.",
55
"author": "Jonathan Gillespie",
66
"license": "MIT",

sfdx-project.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
"path": "./nebula-logger/core",
1010
"definitionFile": "./config/scratch-orgs/base-scratch-def.json",
1111
"scopeProfiles": true,
12-
"versionNumber": "4.18.1.NEXT",
13-
"versionName": "New Declarative Configuration for Ignoring Apex Classes in Stack Traces",
14-
"versionDescription": "Added a new LoggerParameter__mdt record, IgnoredApexOrigins, to provide a declarative approach for admins to configure Apex classes to ignore globally in Apex stack traces, without requiring any code changes.",
12+
"versionNumber": "4.18.2.NEXT",
13+
"versionName": "New Field LogEntry__c.WasLoggedByCurrentUser__c",
14+
"versionDescription": "Added a new field LogEntry__c.WasLoggedByCurrentUser__c & LogEntry__c list view MyGeneratedLogEntries, similar to the existing field Log__c.WasLoggedByCurrentUser__c record & Log__c list view",
1515
"postInstallUrl": "https://github.com/jongpie/NebulaLogger/wiki",
1616
"releaseNotesUrl": "https://github.com/jongpie/NebulaLogger/releases",
1717
"unpackagedMetadata": {
@@ -229,6 +229,7 @@
229229
"Nebula Logger - Core@4.17.5-adds-new-flag-to-relatedlogentries-lwc-for-strict-search-based-on-recordid": "04tg70000007XnFAAU",
230230
"Nebula Logger - Core@4.18.0-winter-'26-release": "04tg700000086Y5AAI",
231231
"Nebula Logger - Core@4.18.1-new-declarative-configuration-for-ignoring-apex-classes-in-stack-traces": "04tg70000008GVpAAM",
232+
"Nebula Logger - Core@4.18.2-new-field-logentry__c.wasloggedbycurrentuser__c": "04tg70000008YZBAA2",
232233
"Nebula Logger - Core Plugin - Async Failure Additions": "0Ho5Y000000blO4SAI",
233234
"Nebula Logger - Core Plugin - Async Failure Additions@1.0.0": "04t5Y0000015lhiQAA",
234235
"Nebula Logger - Core Plugin - Async Failure Additions@1.0.1": "04t5Y0000015lhsQAA",

0 commit comments

Comments
 (0)