Skip to content

Integrate adaptive-logging library as Maven dependency #31

Description

@atomicdragonranch

Port the adaptive logging library from the Amtote codebase into a standalone repo (C:\dev\adaptive-logger) with genericized package namespace (com.streamops.logging or similar).

The StreamOps Flink processor imports it as a Maven dependency.

Source code: C:\1st\1st\service\flink-apps\flink-common\src\main\java\com\stronachgroup\first\flink\logging
Design docs: C:\work\Amtote\from-thumbdrive\Amtote\Obsidian\Work\claude-artifacts\feature-TPP-2104-adaptive-logging-in-flink\adaptive-logging\

Key features to port:

  • AdaptiveLoggerFactory + AdaptiveLoggerImpl (SLF4J wrapper)
  • Ring buffer for debug context capture
  • Error detection with configurable thresholds and auto-escalation
  • Rate limiting (atMostEvery fluent API)
  • Sampling (fixed-rate and count-based)
  • Lazy evaluation (Supplier-based deferred arg evaluation)
  • MDC context preservation
  • Scheduled de-escalation

Genericization:

  • New package namespace (drop com.stronachgroup.first)
  • Remove any Amtote-specific references
  • Flink MDC provider as optional/pluggable
  • Standalone Maven artifact publishable to Maven Central

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    javaJava/Maven componentphase-1Foundation: get it running locally

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions