Skip to content
View as Markdown
View as Markdown

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

Function: createSilentLogger()

createSilentLogger(): Logger

Defined in: packages/b2c-tooling-sdk/src/logging/logger.ts:213

Creates a logger instance that suppresses all output.

Useful for testing or scenarios where logging should be completely disabled.

Returns

Logger

A silent logger instance with no output

Example

ts
const logger = createSilentLogger();
logger.info('This will not print'); // No output produced

Released under the Apache-2.0 License.