API reference@evolu/commonConsole › createNativeConsoleOutput

function createNativeConsoleOutput(): ConsoleOutput;

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

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 {
  assertType,
  createNativeConsoleOutput,
  type ConsoleOutput,
} from "@evolu/common";

const output = createNativeConsoleOutput();

assertType<typeof output, ConsoleOutput>();