API reference › @evolu/common › Console
Platform-agnostic console with structured logging.
Functions
| Function | Description |
|---|---|
| createConsole | Creates a Console. |
| createConsoleArrayOutput | Creates a ConsoleOutput that captures entries to an array. |
| createConsoleFormatter | Creates a ConsoleFormatter for ConsoleConfig.formatter. |
| createConsoleStoreOutput | Creates a ConsoleStoreOutput. |
| createMultiOutput | Creates a ConsoleOutput that fans out to multiple outputs. |
| createNativeConsoleOutput | Creates a ConsoleOutput that writes to globalThis.console. |
| testCreateConsole | Creates a TestConsole that captures all output for testing. |
Interfaces
| Interface | Description |
|---|---|
| Console | Platform-agnostic console with structured logging. |
| ConsoleConfig | Configuration for createConsole. |
| ConsoleDep | - |
| ConsoleEntry | Structured log entry captured by Console. |
| ConsoleFormatterConfig | Configuration for createConsoleFormatter. |
| ConsoleOutput | Output destination for Console. |
| ConsoleStoreOutput | A ConsoleOutput that stores the latest entry in a ReadonlyStore. |
| ConsoleStoreOutputEntryDep | Dependency providing the latest ConsoleEntry from a ConsoleStoreOutput. |
| TestConsole | A test console that captures all output for assertions. |
| TestConsoleDep | - |
Type Aliases
| Type Alias | Description |
|---|---|
| ConsoleEntryTimestampFormat | Timestamp format for ConsoleFormatterConfig. |
| ConsoleFormatter | Transforms a ConsoleEntry before output. |
| ConsoleLevel | Log level controlling which messages are output. |
| ConsoleMethod | Console method being called. |