Skip to content

Commit

Permalink
[skip ci] Updated some content in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jongpie committed Oct 15, 2024
1 parent 9c0fc2e commit 34de489
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -694,12 +694,12 @@ The first step is to add a field to the platform event `LogEntryEvent__e`
```javascript
import { getLogger } from 'c/logger';

export default class LoggerLWCImportDemo extends LightningElement {
export default class LoggerDemo extends LightningElement {
logger = getLogger();

connectedCallback() {
// Set My_Field__c on every log entry event created in this component with the same value
this.logger.setField(LogEntryEvent__e.My_Field__c, 'some value that applies to any subsequent entry');
this.logger.setField({My_Field__c, 'some value that applies to any subsequent entry'});

// Set fields on specific entries
this.logger.warn('hello, world - "a value" set for Some_Other_Field__c').setField({ Some_Other_Field__c: 'a value' });
Expand Down

0 comments on commit 34de489

Please sign in to comment.