From fcb3b43fac296ab67510bfffb9b031bbc18c7b7e Mon Sep 17 00:00:00 2001 From: Md Noor Alam Shuvo Date: Thu, 18 Apr 2024 08:28:27 +0600 Subject: [PATCH] Add emojis used in the formula field LogEntry__c.LoggingLevelWithImage__c (#672) * Updated the formula field LogEntry__c.LoggingLevelWithImage__c to use different emojis for every logging level to make it easier to visually distinguish between them --- README.md | 10 +++++----- .../fields/LoggingLevelWithImage__c.field-meta.xml | 6 +++++- .../core/main/logger-engine/classes/Logger.cls | 2 +- .../main/logger-engine/lwc/logger/logEntryBuilder.js | 2 +- package.json | 2 +- sfdx-project.json | 7 ++++--- 6 files changed, 17 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 3dbf1028e..9effdd15d 100644 --- a/README.md +++ b/README.md @@ -5,15 +5,15 @@ The most robust logger for Salesforce. Works with Apex, Lightning Components, Flow, Process Builder & Integrations. Designed for Salesforce admins, developers & architects. -## Unlocked Package - v4.13.8 +## Unlocked Package - v4.13.9 -[![Install Unlocked Package in a Sandbox](./images/btn-install-unlocked-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5Y000001MkHbQAK) -[![Install Unlocked Package in Production](./images/btn-install-unlocked-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5Y000001MkHbQAK) +[![Install Unlocked Package in a Sandbox](./images/btn-install-unlocked-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5Y000001MkHqQAK) +[![Install Unlocked Package in Production](./images/btn-install-unlocked-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5Y000001MkHqQAK) [![View Documentation](./images/btn-view-documentation.png)](https://jongpie.github.io/NebulaLogger/) -`sf package install --wait 20 --security-type AdminsOnly --package 04t5Y000001MkHbQAK` +`sf package install --wait 20 --security-type AdminsOnly --package 04t5Y000001MkHqQAK` -`sfdx force:package:install --wait 20 --securitytype AdminsOnly --package 04t5Y000001MkHbQAK` +`sfdx force:package:install --wait 20 --securitytype AdminsOnly --package 04t5Y000001MkHqQAK` --- diff --git a/nebula-logger/core/main/log-management/objects/LogEntry__c/fields/LoggingLevelWithImage__c.field-meta.xml b/nebula-logger/core/main/log-management/objects/LogEntry__c/fields/LoggingLevelWithImage__c.field-meta.xml index e6b9f481b..b21119bb3 100644 --- a/nebula-logger/core/main/log-management/objects/LogEntry__c/fields/LoggingLevelWithImage__c.field-meta.xml +++ b/nebula-logger/core/main/log-management/objects/LogEntry__c/fields/LoggingLevelWithImage__c.field-meta.xml @@ -8,7 +8,11 @@ TEXT(LoggingLevel__c), 'ERROR', '⛔', 'WARN', '⚠️', - 'INFO', '✅', + 'INFO', 'ℹ️', + 'DEBUG', '🐞', + 'FINE', '👍', + 'FINER', '👌', + 'FINEST', '🌟', '⚙️' ) + ' ' + TEXT(LoggingLevel__c) diff --git a/nebula-logger/core/main/logger-engine/classes/Logger.cls b/nebula-logger/core/main/logger-engine/classes/Logger.cls index 76a747de4..da4ad60c0 100644 --- a/nebula-logger/core/main/logger-engine/classes/Logger.cls +++ b/nebula-logger/core/main/logger-engine/classes/Logger.cls @@ -15,7 +15,7 @@ global with sharing class Logger { // There's no reliable way to get the version number dynamically in Apex @TestVisible - private static final String CURRENT_VERSION_NUMBER = 'v4.13.8'; + private static final String CURRENT_VERSION_NUMBER = 'v4.13.9'; private static final System.LoggingLevel FALLBACK_LOGGING_LEVEL = System.LoggingLevel.DEBUG; private static final List LOG_ENTRIES_BUFFER = new List(); private static final String MISSING_SCENARIO_ERROR_MESSAGE = 'No logger scenario specified. A scenario is required for logging in this org.'; diff --git a/nebula-logger/core/main/logger-engine/lwc/logger/logEntryBuilder.js b/nebula-logger/core/main/logger-engine/lwc/logger/logEntryBuilder.js index c153a8385..7cd32260f 100644 --- a/nebula-logger/core/main/logger-engine/lwc/logger/logEntryBuilder.js +++ b/nebula-logger/core/main/logger-engine/lwc/logger/logEntryBuilder.js @@ -4,7 +4,7 @@ //------------------------------------------------------------------------------------------------// import FORM_FACTOR from '@salesforce/client/formFactor'; -const CURRENT_VERSION_NUMBER = 'v4.13.8'; +const CURRENT_VERSION_NUMBER = 'v4.13.9'; // JavaScript equivalent to the Apex class ComponentLogger.ComponentLogEntry const ComponentLogEntry = class { diff --git a/package.json b/package.json index 52a87cd15..2efad450e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nebula-logger", - "version": "4.13.8", + "version": "4.13.9", "description": "The most robust logger for Salesforce. Works with Apex, Lightning Components, Flow, Process Builder & Integrations. Designed for Salesforce admins, developers & architects.", "author": "Jonathan Gillespie", "license": "MIT", diff --git a/sfdx-project.json b/sfdx-project.json index 9527a9d3a..f816ee5d0 100644 --- a/sfdx-project.json +++ b/sfdx-project.json @@ -14,9 +14,9 @@ "path": "./nebula-logger/core", "definitionFile": "./config/scratch-orgs/base-scratch-def.json", "scopeProfiles": true, - "versionNumber": "4.13.8.NEXT", - "versionName": "logEntryMetadataViewer LWC Bugfixes", - "versionDescription": "Fixed some additional issues in the logEntryMetadataViewer LWC that prevented the 'view full source' btn from showing up for non-admins", + "versionNumber": "4.13.9.NEXT", + "versionName": "Updated Logging Level Emojis", + "versionDescription": "Updated the formula field LogEntry__c.LoggingLevelWithImage__c to use different emojis for every logging level to make it easier to visually distinguish between them", "releaseNotesUrl": "https://github.com/jongpie/NebulaLogger/releases", "unpackagedMetadata": { "path": "./nebula-logger/extra-tests" @@ -176,6 +176,7 @@ "Nebula Logger - Core@4.13.6-view-log-entry-metadata-custom-permission": "04t5Y000001MkGxQAK", "Nebula Logger - Core@4.13.7-fixed-function-setscenario()-in-logger-lwc": "04t5Y000001MkHRQA0", "Nebula Logger - Core@4.13.8-logentrymetadataviewer-lwc-bugfixes": "04t5Y000001MkHbQAK", + "Nebula Logger - Core@4.13.9-updated-logging-level-emojis": "04t5Y000001MkHqQAK", "Nebula Logger - Core Plugin - Async Failure Additions": "0Ho5Y000000blO4SAI", "Nebula Logger - Core Plugin - Async Failure Additions@1.0.0": "04t5Y0000015lhiQAA", "Nebula Logger - Core Plugin - Async Failure Additions@1.0.1": "04t5Y0000015lhsQAA",