How ankitgupt-a/loggingframeworklld works
Project type and purpose
• This is an open-source, low-level design of a logging framework (library) in Java.
• It provides a central API (Logger, LogManager) for client code to emit log messages, routes messages through a handler chain, and distributes them to various “sinks” (console, file, database, etc.).
File structure
• src/LoggerApplication.java — example client or entry-point showing how to use the framework.
• src/Logger, LogLevel — core logging API (interface or abstract class + enum).
• src/LogManager — likely a centralized factory or singleton that hands back configured Logger instances.
• src/LoggerHandler — implements the Chain-of-Responsibility pattern to route log calls by level.
• src/LogSinkSubject, LogObserver — implement the Observer pattern to register/unregister sinks.
• src/ConsoleLogger, FileLogger, DataBaseLogger, InfoLogger, DebugLogger, ErrorLogger — concrete observers or handlers that do the actual writing.
README for additional insights
• The README points to a Medium article describing low-level design of a logging framework.