Skip to content

@statesync/core


@statesync/core / noopLogger

Variable: noopLogger

ts
const noopLogger: Logger;

Defined in: logger.ts:106

A no-op Logger instance where all methods (debug, warn, error) are silent stubs.

Use this when you want to explicitly disable logging rather than passing undefined. This avoids null-checks inside the engine and makes the intent clear.

Example

ts
import { noopLogger, createRevisionSync } from '@statesync/core';

const handle = createRevisionSync({
  // ...
  logger: noopLogger, // Explicitly silence all logs
});

Released under the MIT License.