API reference@evolu/commonConsole › createNativeConsoleOutput

function createNativeConsoleOutput(): ConsoleOutput;

Defined in: packages/common/src/Console.ts:473

Creates a ConsoleOutput that writes to globalThis.console.

Pure transport - just calls the native console method with the entry args. Use createConsoleFormatter with ConsoleConfig.formatter for timestamps and path prefixes.

Example

import {
  assertEqual,
  assertType,
  createNativeConsoleOutput,
  type ConsoleOutput,
} from "@evolu/common";

const output = createNativeConsoleOutput();

assertType<ConsoleOutput, typeof output>();
assertEqual(typeof output.write, "function");