SLF4J logging adapter that delegates to SLF4J backend.
This adapter implements all logging protocols and uses SLF4J as the underlying logging facade. It supports:
The adapter leverages SLF4J's backend (e.g., Logback, Log4j2) for actual log routing, formatting, and output, eliminating duplication with clojure.tools.logging infrastructure.
SLF4J logging adapter that delegates to SLF4J backend. This adapter implements all logging protocols and uses SLF4J as the underlying logging facade. It supports: - All log levels (trace, debug, info, warn, error, fatal) - Structured context via MDC (Mapped Diagnostic Context) - Audit and security event logging - Dynamic context management - Runtime level configuration The adapter leverages SLF4J's backend (e.g., Logback, Log4j2) for actual log routing, formatting, and output, eliminating duplication with clojure.tools.logging infrastructure.
(create-logging-component config)Creates an SLF4J logging component for system wiring.
This is the main entry point for Integrant system initialization.
Args: config - Configuration map (see create-slf4j-logger)
Returns: Logger component implementing all logging protocols
Pure: No (creates mutable state)
Creates an SLF4J logging component for system wiring. This is the main entry point for Integrant system initialization. Args: config - Configuration map (see create-slf4j-logger) Returns: Logger component implementing all logging protocols Pure: No (creates mutable state)
(create-slf4j-logger config)Creates an SLF4J logger instance.
Args: config - Configuration map with keys: :provider - Should be :slf4j :level - Minimum log level (default :info) :logger-name - SLF4J logger name (default "wagoe") :default-tags - Map of default context tags
Returns: Logger implementing ILogger, IAuditLogger, ILoggingContext, ILoggingConfig
Pure: No (creates mutable state atoms and gets SLF4J logger)
Creates an SLF4J logger instance.
Args:
config - Configuration map with keys:
:provider - Should be :slf4j
:level - Minimum log level (default :info)
:logger-name - SLF4J logger name (default "wagoe")
:default-tags - Map of default context tags
Returns:
Logger implementing ILogger, IAuditLogger, ILoggingContext, ILoggingConfig
Pure: No (creates mutable state atoms and gets SLF4J logger)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 |