Stdout logging adapter that writes formatted logs to standard output.
This adapter implements all logging protocols and provides configurable formatting options including plain text and JSON output with optional colors, timestamps, and structured context.
Stdout logging adapter that writes formatted logs to standard output. This adapter implements all logging protocols and provides configurable formatting options including plain text and JSON output with optional colors, timestamps, and structured context.
(create-logging-component config)Creates a stdout logging component for system wiring.
This is the main entry point for Integrant system initialization.
Args: config - Configuration map (see create-stdout-logger)
Returns: Logger component implementing all logging protocols
Pure: No (creates mutable state)
Creates a stdout logging component for system wiring. This is the main entry point for Integrant system initialization. Args: config - Configuration map (see create-stdout-logger) Returns: Logger component implementing all logging protocols Pure: No (creates mutable state)
(create-stdout-logger config)Creates a stdout logger instance.
Args: config - Configuration map with keys: :provider - Should be :stdout :level - Minimum log level (default :info) :format - :text or :json (default :text) :colors - Enable ANSI colors (default true for :text) :include-timestamp - Include timestamps (default true) :include-level - Include level in output (default true) :include-thread - Include thread name (default false) :default-tags - Map of default context tags :max-stacktrace-elements - Max stack trace lines (default 50)
Returns: Logger implementing ILogger, IAuditLogger, ILoggingContext, ILoggingConfig
Pure: No (creates mutable state atoms)
Creates a stdout logger instance.
Args:
config - Configuration map with keys:
:provider - Should be :stdout
:level - Minimum log level (default :info)
:format - :text or :json (default :text)
:colors - Enable ANSI colors (default true for :text)
:include-timestamp - Include timestamps (default true)
:include-level - Include level in output (default true)
:include-thread - Include thread name (default false)
:default-tags - Map of default context tags
:max-stacktrace-elements - Max stack trace lines (default 50)
Returns:
Logger implementing ILogger, IAuditLogger, ILoggingContext, ILoggingConfig
Pure: No (creates mutable state atoms)cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |