API reference@evolu/common › Console

Platform-agnostic console with structured logging.

Functions

FunctionDescription
createConsoleCreates a Console.
createConsoleArrayOutputCreates a ConsoleOutput that captures entries to an array.
createConsoleFormatterCreates a ConsoleFormatter for ConsoleConfig.formatter.
createConsoleStoreOutputCreates a ConsoleStoreOutput.
createMultiOutputCreates a ConsoleOutput that fans out to multiple outputs.
createNativeConsoleOutputCreates a ConsoleOutput that writes to globalThis.console.
testCreateConsoleCreates a TestConsole that captures all output for testing.

Interfaces

InterfaceDescription
ConsolePlatform-agnostic console with structured logging.
ConsoleConfigConfiguration for createConsole.
ConsoleDep-
ConsoleEntryStructured log entry captured by Console.
ConsoleFormatterConfigConfiguration for createConsoleFormatter.
ConsoleOutputOutput destination for Console.
ConsoleStoreOutputA ConsoleOutput that stores the latest entry in a ReadonlyStore.
ConsoleStoreOutputEntryDepDependency providing the latest ConsoleEntry from a ConsoleStoreOutput.
TestConsoleA test console that captures all output for assertions.
TestConsoleDep-

Type Aliases

Type AliasDescription
ConsoleEntryTimestampFormatTimestamp format for ConsoleFormatterConfig.
ConsoleFormatterTransforms a ConsoleEntry before output.
ConsoleLevelLog level controlling which messages are output.
ConsoleMethodConsole method being called.