Skip to content

Add configurable logging system - #407

Merged
tnull merged 5 commits into
lightningdevkit:mainfrom
enigbe:2024-11-configurable-logging-system
Jan 30, 2025
Merged

tnull merged 5 commits into
lightningdevkit:mainfrom
enigbe:2024-11-configurable-logging-system

Conversation

@enigbe

@enigbe enigbe commented Nov 20, 2024

Copy link
Copy Markdown
Contributor

Overview

This PR introduces a flexible logging system for LDK Node by implementing a LogWriter interface that supports writing logs to different destinations.

What this PR does

  • Introduces a LogWriter interface, allowing Writer variants to handle log output destinations. The supported Writer variants can now:
    • Write logs to the filesystem,
    • Forward to a log implementer,
    • Relay logs to a custom logger.
  • Exposes LogWriter to bindings.
  • Test logging to different destinations with:
    • In-memory log logger,
    • In-memory LogWriter logger.

Related Issue(s)

Loading
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.

3 participants