API reference › @evolu/common › Console › createNativeConsoleOutput
function createNativeConsoleOutput(): ConsoleOutput;
Defined in: packages/common/src/Console.ts:467
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 { createNativeConsoleOutput, type ConsoleOutput } from "@evolu/common";
const output = createNativeConsoleOutput();
expectTypeOf(output).toEqualTypeOf<ConsoleOutput>();
expect(output.write).toBeTypeOf("function");