Skip to content

Conversation

@yoxira
Copy link
Member

@yoxira yoxira commented Nov 1, 2025

Description

  • Refactored Logger module
  • Reviewed and improved log messages
  • Added namespaces to choose what log messages to save
  • Introduced debug files that persist data for the past week

Related issue

You can read motivation behind the feature in the #151 issue

External links (optional)

https://docs.adamant.im/own-node/configuration.html#logging

Screenshots or videos (optional)

image

Breaking changes

No breaking changes introduced. Debug file is optional.

How to test

Specify path to a new file in debugFileName in config file:

{
  "port": 36666,
  // ...
  "debugFileName": "logs/adamant_debug.log" // <--
}

Notes for reviewers

Before tweaking unit tests and documentation I want to get feedback on the config options. E.g., Do we want users to manually set namespaces to track? If so, what syntax in config files would we use?

Checklist

  • Code is formatted
  • Tests added/updated (if needed)
  • Documentation updated (if needed)
  • Changes tested in all relevant environments

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.

2 participants