diff --git a/docs/apex/Configuration/LoggerFieldMapper.md b/docs/apex/Configuration/LoggerFieldMapper.md new file mode 100644 index 000000000..2c5672f7b --- /dev/null +++ b/docs/apex/Configuration/LoggerFieldMapper.md @@ -0,0 +1,24 @@ +--- +layout: default +--- + +## LoggerFieldMapper class + +Maps fields values from custom fields on `LogEntryEvent__e` to equivalent fields on `Log__c`, `LogEntry__c`, and `LoggerScenario__c` + +--- + +### Methods + +#### `mapFieldValues(SObject sourceRecord, SObject targetRecord)` → `void` + +Copies field values from the `sourceRecord` to the `targetRecord`, based on rules configured in `LoggerFieldMapping_t` + +##### Parameters + +| Param | Description | +| -------------- | ------------------------------------------------------------------------------- | +| `sourceRecord` | The source `SObject` record containing the data to copy | +| `targetRecord` | The target `SObject` record that should have fields & field values appended | + +--- diff --git a/docs/apex/index.md b/docs/apex/index.md index 277ce5008..59c568ced 100644 --- a/docs/apex/index.md +++ b/docs/apex/index.md @@ -116,10 +116,6 @@ Controller class for the LWC `logViewer`, used to provided different views on a Builds and sends email notifications when internal exceptions occur within the logging system -### [LoggerFieldMapper](Log-Management/LoggerFieldMapper) - -Maps fields values from custom fields on `LogEntryEvent__e` to equivalent fields on `Log__c`, `LogEntry__c`, and `LoggerScenario__c` - ### [LoggerHomeHeaderController](Log-Management/LoggerHomeHeaderController) Controller class for the LWC `loggerHomeHeader` @@ -154,6 +150,10 @@ Class used by the logging system for batch contextual details Class used to cache query results returned by the selector classes +### [LoggerFieldMapper](Configuration/LoggerFieldMapper) + +Maps fields values from custom fields on `LogEntryEvent__e` to equivalent fields on `Log__c`, `LogEntry__c`, and `LoggerScenario__c` + ### [LoggerParameter](Configuration/LoggerParameter) Provides a centralized way to load parameters for SObject handlers & plugins, and casts the parameters to common data types diff --git a/nebula-logger/core/main/log-management/classes/LoggerFieldMapper.cls b/nebula-logger/core/main/configuration/classes/LoggerFieldMapper.cls similarity index 99% rename from nebula-logger/core/main/log-management/classes/LoggerFieldMapper.cls rename to nebula-logger/core/main/configuration/classes/LoggerFieldMapper.cls index dc3f18006..662c8eb14 100644 --- a/nebula-logger/core/main/log-management/classes/LoggerFieldMapper.cls +++ b/nebula-logger/core/main/configuration/classes/LoggerFieldMapper.cls @@ -4,7 +4,7 @@ //------------------------------------------------------------------------------------------------// /** - * @group Log Management + * @group Configuration * @description Maps fields values from custom fields on `LogEntryEvent__e` * to equivalent fields on `Log__c`, `LogEntry__c`, and `LoggerScenario__c` */ diff --git a/nebula-logger/core/main/log-management/classes/LoggerFieldMapper.cls-meta.xml b/nebula-logger/core/main/configuration/classes/LoggerFieldMapper.cls-meta.xml similarity index 100% rename from nebula-logger/core/main/log-management/classes/LoggerFieldMapper.cls-meta.xml rename to nebula-logger/core/main/configuration/classes/LoggerFieldMapper.cls-meta.xml diff --git a/nebula-logger/core/tests/log-management/classes/LoggerFieldMapper_Tests.cls b/nebula-logger/core/tests/configuration/classes/LoggerFieldMapper_Tests.cls similarity index 100% rename from nebula-logger/core/tests/log-management/classes/LoggerFieldMapper_Tests.cls rename to nebula-logger/core/tests/configuration/classes/LoggerFieldMapper_Tests.cls diff --git a/nebula-logger/core/tests/log-management/classes/LoggerFieldMapper_Tests.cls-meta.xml b/nebula-logger/core/tests/configuration/classes/LoggerFieldMapper_Tests.cls-meta.xml similarity index 100% rename from nebula-logger/core/tests/log-management/classes/LoggerFieldMapper_Tests.cls-meta.xml rename to nebula-logger/core/tests/configuration/classes/LoggerFieldMapper_Tests.cls-meta.xml