Skip to content
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.

feat: add a logger based on plenary.log #99

Merged
merged 5 commits into from
Sep 25, 2021

Conversation

kylo252
Copy link
Contributor

@kylo252 kylo252 commented Sep 22, 2021

Description

Add a logger based on Plenary's log implementation.

I basically hijacked the notify function, so it's trivial to swap out the logger for a more sophisticated one, should you wish so.


Note: It's up to you to decide on how to set the default log level.

@kylo252
Copy link
Contributor Author

kylo252 commented Sep 22, 2021

Here's a demo of what it looks like in action:

jZOhTGEC89

@williamboman
Copy link
Owner

Cool!! This is something I had in mind. One thing that kept me putting this of is the log-to-storage part. I glanced through the code so I think I have the answer, but is there any log rotation/pruning in place? Bit worried that these log files are unbounded in size and will just keep growing forever, which is not very cash money. The amount of logging that is in place today is no cause for concern though, but I was planning on adding a bunch more (like performance metrics and whatnot).

@williamboman williamboman self-assigned this Sep 24, 2021
kylo252 and others added 2 commits September 24, 2021 19:54
These don't conform to the logger signature, will fix later.
@williamboman
Copy link
Owner

@kylo252 I opened a PR to this branch at kylo252#1. Apart from those suggestions I think this is ready to merge!

@williamboman williamboman merged commit 93309eb into williamboman:main Sep 25, 2021
@kylo252 kylo252 deleted the logger branch January 6, 2022 12:57
@xsteadfastx xsteadfastx mentioned this pull request May 5, 2022
1 task
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants