API reference@evolu/common › Console

Platform-agnostic console with structured logging.

Core

NameDescription
ConsolePlatform-agnostic console with structured logging.
ConsoleConfigConfiguration for createConsole.
ConsoleDepDependency wrapper for Console.
ConsoleEntryStructured log entry captured by Console.
ConsoleLevelLog level controlling which messages are output.
ConsoleMethodConsole method being called.
createConsoleCreates a Console.

Output

NameDescription
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.
ConsoleEntryTimestampFormatTimestamp format for ConsoleFormatterConfig.
ConsoleFormatterTransforms a ConsoleEntry before output.
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.

Testing

NameDescription
TestConsoleA test console that captures all output for assertions.
TestConsoleDepDependency wrapper for TestConsole.
testCreateConsoleCreates a TestConsole that captures all output for testing.