Liking cljdoc? Tell your friends :D

wagoe.observability.logging.shell.adapters.datadog

Datadog logging adapter implementation.

This adapter integrates with Datadog (https://datadoghq.com) for production logging, audit tracking, and observability. It implements all logging protocols to provide comprehensive structured logging capabilities that integrate with Datadog's platform.

Features:

  • Structured JSON logging to Datadog HTTP API
  • Log levels with proper Datadog level mapping
  • Context management (correlation IDs, request metadata)
  • Audit event logging for compliance
  • Security event tracking
  • Batch processing for performance
  • Runtime configuration management

Configuration: The adapter requires a Datadog API key and service name, optionally accepting:

  • Source identifier (application/component name)
  • Hostname override
  • Custom tags
  • Custom endpoint (for EU region, etc.)
  • Batch size and flush interval settings

Example: (def datadog-logger (create-datadog-logger {:api-key "your-32-char-datadog-api-key" :service "my-service" :source "my-app" :environment "production" :tags ["team:backend" "version:1.0.0"] :batch-size 50 :flush-interval 5000}))

Datadog logging adapter implementation.

This adapter integrates with Datadog (https://datadoghq.com) for production logging,
audit tracking, and observability. It implements all logging protocols to provide
comprehensive structured logging capabilities that integrate with Datadog's platform.

Features:
- Structured JSON logging to Datadog HTTP API
- Log levels with proper Datadog level mapping
- Context management (correlation IDs, request metadata)
- Audit event logging for compliance
- Security event tracking
- Batch processing for performance
- Runtime configuration management

Configuration:
The adapter requires a Datadog API key and service name, optionally accepting:
- Source identifier (application/component name)
- Hostname override
- Custom tags
- Custom endpoint (for EU region, etc.)
- Batch size and flush interval settings

Example:
(def datadog-logger
  (create-datadog-logger
    {:api-key "your-32-char-datadog-api-key"
     :service "my-service"
     :source "my-app"
     :environment "production"
     :tags ["team:backend" "version:1.0.0"]
     :batch-size 50
     :flush-interval 5000}))
raw docstring

wagoe.observability.logging.shell.adapters.no-op

No-op logging adapter that safely ignores all logging calls.

This adapter implements all logging protocols but performs no actual logging, making it safe for feature modules to use logging protocols even when logging is disabled or not configured.

No-op logging adapter that safely ignores all logging calls.

This adapter implements all logging protocols but performs no actual logging,
making it safe for feature modules to use logging protocols even when logging
is disabled or not configured.
raw docstring

wagoe.observability.logging.shell.adapters.slf4j

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.

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.
raw docstring

wagoe.observability.logging.shell.adapters.stdout

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.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close