Skip to content

Commit

Permalink
Added custom index for Log__c.LogRetentionDate__c (#553)
Browse files Browse the repository at this point in the history
* Added new custom index Log__c.LogRetentionDate__c.indx-meta.xml - this should help speed up the LogBatchPurger job (among other things)
  • Loading branch information
jongpie authored Sep 20, 2023
1 parent fb6cd3e commit d4aeb00
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 11 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.11.4
## Unlocked Package - v4.11.5

[![Install Unlocked Package in a Sandbox](./images/btn-install-unlocked-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5Y000001HZdPQAW)
[![Install Unlocked Package in Production](./images/btn-install-unlocked-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5Y000001HZdPQAW)
[![Install Unlocked Package in a Sandbox](./images/btn-install-unlocked-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5Y000001HZdZQAW)
[![Install Unlocked Package in Production](./images/btn-install-unlocked-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5Y000001HZdZQAW)
[![View Documentation](./images/btn-view-documentation.png)](https://jongpie.github.io/NebulaLogger/)

`sf package install --wait 20 --security-type AdminsOnly --package 04t5Y000001HZdPQAW`
`sf package install --wait 20 --security-type AdminsOnly --package 04t5Y000001HZdZQAW`

`sfdx force:package:install --wait 20 --securitytype AdminsOnly --package 04t5Y000001HZdPQAW`
`sfdx force:package:install --wait 20 --securitytype AdminsOnly --package 04t5Y000001HZdZQAW`

---

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8" ?>
<CustomIndex xmlns="http://soap.sforce.com/2006/04/metadata">
<allowNullValues>true</allowNullValues>
</CustomIndex>
2 changes: 1 addition & 1 deletion nebula-logger/core/main/logger-engine/classes/Logger.cls
Original file line number Diff line number Diff line change
Expand Up @@ -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.11.4';
private static final String CURRENT_VERSION_NUMBER = 'v4.11.5';
private static final System.LoggingLevel FALLBACK_LOGGING_LEVEL = System.LoggingLevel.DEBUG;
private static final Set<String> IGNORED_APEX_CLASSES = initializeIgnoredApexClasses();
private static final List<LogEntryEventBuilder> LOG_ENTRIES_BUFFER = new List<LogEntryEventBuilder>();
Expand Down
2 changes: 1 addition & 1 deletion nebula-logger/core/main/logger-engine/lwc/logger/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { LightningElement, api } from 'lwc';
import { createLoggerService } from './loggerService';

const CURRENT_VERSION_NUMBER = 'v4.11.4';
const CURRENT_VERSION_NUMBER = 'v4.11.5';

export default class Logger extends LightningElement {
#loggerService = createLoggerService();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nebula-logger",
"version": "4.11.4",
"version": "4.11.5",
"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",
Expand Down
7 changes: 4 additions & 3 deletions sfdx-project.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"package": "Nebula Logger - Core",
"path": "./nebula-logger/core",
"definitionFile": "./config/scratch-orgs/base-scratch-def.json",
"versionNumber": "4.11.4.NEXT",
"versionName": "Removed Chatter dependencies",
"versionDescription": "Removed several Chatter components from FlexiPages - the use of these components would block the installation of Nebula Logger in orgs with Chatter disabled",
"versionNumber": "4.11.5.NEXT",
"versionName": "Custom Index for Log Retention Date",
"versionDescription": "Added a custom index to Log__c.LogRetentionDate__c to help speed up the job LogBatchPurger in orgs with large data volumes (LDV)",
"releaseNotesUrl": "https://github.com/jongpie/NebulaLogger/releases",
"unpackagedMetadata": {
"path": "./nebula-logger/extra-tests"
Expand Down Expand Up @@ -152,6 +152,7 @@
"Nebula Logger - [email protected]": "04t5Y000001TsZAQA0",
"Nebula Logger - [email protected]": "04t5Y000001HZd0QAG",
"Nebula Logger - [email protected]": "04t5Y000001HZdPQAW",
"Nebula Logger - [email protected]": "04t5Y000001HZdZQAW",
"Nebula Logger - Core Plugin - Async Failure Additions": "0Ho5Y000000blO4SAI",
"Nebula Logger - Core Plugin - Async Failure [email protected]": "04t5Y0000015lhiQAA",
"Nebula Logger - Core Plugin - Async Failure [email protected]": "04t5Y0000015lhsQAA",
Expand Down

0 comments on commit d4aeb00

Please sign in to comment.