Skip to content

feat: add configurable logger system with spdlog backend#34

Merged
IronsDu merged 3 commits intomainfrom
feat/logger-system
Mar 30, 2026
Merged

feat: add configurable logger system with spdlog backend#34
IronsDu merged 3 commits intomainfrom
feat/logger-system

Conversation

@IronsDu
Copy link
Copy Markdown
Owner

@IronsDu IronsDu commented Mar 25, 2026

  • Add LogSink interface for custom log output
  • Add default stderr color sink using spdlog
  • Support log level filtering (Trace/Debug/Info/Warning/Error/Fatal)
  • Add thread-safe LogManager singleton
  • Integrate logging into profiler_manager
  • Add unit tests for logger functionality
  • Fix build: link Drogon to profiler_lib

IronsDu and others added 2 commits March 25, 2026 09:50
- Add LogSink interface for custom log output
- Add default stderr color sink using spdlog
- Support log level filtering (Trace/Debug/Info/Warning/Error/Fatal)
- Add thread-safe LogManager singleton
- Integrate logging into profiler_manager
- Add unit tests for logger functionality
- Fix build: link Drogon to profiler_lib

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Remove unused levelToString function in default_log_sink.cpp
- Apply clang-format to all logger-related files

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@IronsDu IronsDu force-pushed the feat/logger-system branch from f0b3f2f to d28ccec Compare March 25, 2026 13:03
Add comprehensive documentation for the configurable logger system:
- LogLevel enum with all severity levels
- LogSink interface for custom log output
- setSink() function to replace default sink
- setLogLevel() function to control log verbosity
- Integration examples: custom logger, spdlog, and null sink

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@IronsDu IronsDu merged commit 1733427 into main Mar 30, 2026
6 checks passed
@IronsDu IronsDu deleted the feat/logger-system branch March 30, 2026 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant