Skip to content

Interface: ConsoleTransportOptions

Options for the stdout/stderr Console transport.

Properties

PropertyTypeDescription
enabled?booleanWhether to attach the Console transport. Defaults to true. Set to false when stdout output should be handled entirely by another transport).
forceConsole?booleanRoute writes through console.log/error instead of process.stdout/stderr.write. Useful when running under a debugger (VSCode) so messages appear in the debug console. Defaults to true when process.env.VSCODE_INSPECTOR_OPTIONS is set, otherwise false.
format?"pretty" | "pretty+metadata" | "json"Output format. - 'pretty': colorized human-readable lines, application meta hidden (default for local dev). - 'pretty+metadata': same as 'pretty' but appends the JSON-serialized meta after each message (uses winston.format.simple()). Useful when you want to see context fields in the terminal. - 'json': single-line JSON with timestamp + meta, suitable for log aggregators that parse JSON (CloudWatch Logs Insights, Loki).