Package Edition of Nebula Logger
Unlocked Package
Package Version of Nebula Logger
v4.13.11
New Bug Summary
Hi @jongpie ,
I am using feature https://github.com/jongpie/NebulaLogger/tree/feature/custom-field-mappings . We have included the big object archiving plugin in project.json.
{
"name": "Nebula Logger",
"namespace": "",
"sourceApiVersion": "60.0",
"sfdcLoginUrl": "https://login.salesforce.com",
"plugins": {
"sfdx-plugin-prettier": {
"enabled": true
}
},
"packageDirectories": [
{
"package": "Nebula Logger - Core",
"path": "./nebula-logger/core",
"definitionFile": "./config/scratch-orgs/base-scratch-def.json",
"scopeProfiles": true,
"versionNumber": "4.13.11.NEXT",
"versionName": "Custom Field Mappings Support",
"versionDescription": "Added the ability to set & map custom fields, using a new CMDT LoggerFieldMapping__mdt and new instance methods LogEntryEventBuilder.setField() & setFields()",
"releaseNotesUrl": "https://github.com/jongpie/NebulaLogger/releases",
"unpackagedMetadata": {
"path": "./nebula-logger/extra-tests"
},
"default": true
},
{
"default": false,
"package": "Nebula Logger - Core Plugin - Async Failure Additions",
"path": "./nebula-logger/plugins/async-failure-additions/plugin",
"versionName": "Added logging for Screen Flow failures",
"versionNumber": "1.0.2.NEXT",
"versionDescription": "Allows unhandled exceptions within screen flows to be automatically logged (toggleable, default off)"
},
{
"package": "Nebula Logger - Core Plugin - Big Object Archiving",
"path": "./nebula-logger/plugins/big-object-archiving/plugin",
"versionName": "Beta Release",
"versionNumber": "0.9.0.NEXT",
"versionDescription": "Initial beta version of new plugin",
"default": false
},
{
"path": "nebula-logger",
"package": "testunlocked5",
"versionName": "ver 0.1",
"versionNumber": "0.1.0.NEXT",
"default": false,
"versionDescription": "testunlocked package"
}
],
"packageAliases": {
"testunlocked5": "0HoGB000000wk3R0AQ",
"testunlocked5@0.1.0-1": "04tGB000003rdwyYAA"
}
}
fyi, in Above code i am creating my own unlocked package named testunlocked5.
after we installed this unlocked package everything is working fine and expected. however we noticed that when we run LogBatchPurger after making sure that "Log Purge Action" of "Archive" and a "Log Retention Date" <= TODAY on log__C records.
We noticed that log__C records are getting archived and I am able to see those corresponding log entries in LogEntryArchive__b.
but we also found that new log__C records are also getting created .
is this normal behavior ?
do you have any documentation on how to use big object Archiving plugins ?
Pankaj
Package Edition of Nebula Logger
Unlocked Package
Package Version of Nebula Logger
v4.13.11
New Bug Summary
Hi @jongpie ,
I am using feature https://github.com/jongpie/NebulaLogger/tree/feature/custom-field-mappings . We have included the big object archiving plugin in project.json.
{
"name": "Nebula Logger",
"namespace": "",
"sourceApiVersion": "60.0",
"sfdcLoginUrl": "https://login.salesforce.com",
"plugins": {
"sfdx-plugin-prettier": {
"enabled": true
}
},
"packageDirectories": [
{
"package": "Nebula Logger - Core",
"path": "./nebula-logger/core",
"definitionFile": "./config/scratch-orgs/base-scratch-def.json",
"scopeProfiles": true,
"versionNumber": "4.13.11.NEXT",
"versionName": "Custom Field Mappings Support",
"versionDescription": "Added the ability to set & map custom fields, using a new CMDT LoggerFieldMapping__mdt and new instance methods LogEntryEventBuilder.setField() & setFields()",
"releaseNotesUrl": "https://github.com/jongpie/NebulaLogger/releases",
"unpackagedMetadata": {
"path": "./nebula-logger/extra-tests"
},
"default": true
},
{
"default": false,
"package": "Nebula Logger - Core Plugin - Async Failure Additions",
"path": "./nebula-logger/plugins/async-failure-additions/plugin",
"versionName": "Added logging for Screen Flow failures",
"versionNumber": "1.0.2.NEXT",
"versionDescription": "Allows unhandled exceptions within screen flows to be automatically logged (toggleable, default off)"
},
{
"package": "Nebula Logger - Core Plugin - Big Object Archiving",
"path": "./nebula-logger/plugins/big-object-archiving/plugin",
"versionName": "Beta Release",
"versionNumber": "0.9.0.NEXT",
"versionDescription": "Initial beta version of new plugin",
"default": false
},
{
"path": "nebula-logger",
"package": "testunlocked5",
"versionName": "ver 0.1",
"versionNumber": "0.1.0.NEXT",
"default": false,
"versionDescription": "testunlocked package"
}
],
"packageAliases": {
"testunlocked5": "0HoGB000000wk3R0AQ",
"testunlocked5@0.1.0-1": "04tGB000003rdwyYAA"
}
}
fyi, in Above code i am creating my own unlocked package named testunlocked5.
after we installed this unlocked package everything is working fine and expected. however we noticed that when we run LogBatchPurger after making sure that "Log Purge Action" of "Archive" and a "Log Retention Date" <= TODAY on log__C records.
We noticed that log__C records are getting archived and I am able to see those corresponding log entries in LogEntryArchive__b.
but we also found that new log__C records are also getting created .
is this normal behavior ?
do you have any documentation on how to use big object Archiving plugins ?
Pankaj