How buraktabn/one_logger works
• Logger Core: Represent the main Logger class (located in lib/one_logger.dart) that provides the primary logging methods (trace, info, warn, etc.).
• Logger Options & Filters: Highlight components such as LoggerOptions, LoggerFilter (along with its DevelopmentLoggerFilter and ProductionLoggerFilter), and customization points for styling and behavior (found under lib/src/options/ and referenced in the README).
• Loki Integration: Show the dedicated Loki support module (within lib/src/loki/) including LokiOptions and Pusher, which handle configuration and log dispatch to the remote Loki server.
Component Relationships and Flow
• That the Logger internally leverages helper modules (lib/src/helper.dart) and may call into ANSI support functions (from lib/src/support/) when printing logs.
Architectural Patterns and Design Principles
• Modularity: The package is organized into clear submodules (options, logger core, ANSI support, Loki integration), which makes it easy to extend or modify specific behaviors.
• Separation of Concerns: Configuration, logging output, and external log dispatch (to Loki) are distinctly separated into different components.
• Extensibility: The use of abstract LoggerFilter and customizable LoggerOptions allows for extension in various operational contexts (development vs. production).