Skip to content

@salesforce/b2c-tooling-sdk / logging / LoggerOptions

Interface: LoggerOptions ​

Defined in: packages/b2c-tooling-sdk/src/logging/types.ts:24

Properties ​

baseContext? ​

optional baseContext: LogContext

Defined in: packages/b2c-tooling-sdk/src/logging/types.ts:32

Base context included in all log entries


colorize? ​

optional colorize: boolean

Defined in: packages/b2c-tooling-sdk/src/logging/types.ts:38

Enable colors in pretty print mode. Default: true


destination? ​

optional destination: LogDestination

Defined in: packages/b2c-tooling-sdk/src/logging/types.ts:30

Custom destination stream. Overrides fd when provided. Useful for testing.


fd? ​

optional fd: number

Defined in: packages/b2c-tooling-sdk/src/logging/types.ts:28

File descriptor to write to (1=stdout, 2=stderr). Default: 2


json? ​

optional json: boolean

Defined in: packages/b2c-tooling-sdk/src/logging/types.ts:36

Output JSON lines instead of pretty print. Default: false


level? ​

optional level: LogLevel

Defined in: packages/b2c-tooling-sdk/src/logging/types.ts:26

Log level. Default: 'info'


redact? ​

optional redact: boolean

Defined in: packages/b2c-tooling-sdk/src/logging/types.ts:34

Enable secret redaction. Default: true

Released under the Apache-2.0 License.