The Wayback Machine - https://web.archive.org/web/20201202232050/https://github.com/prysmaticlabs/prysm/issues/6317
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unite All Logging into a Single Handler #6317

Open
nisdas opened this issue Jun 19, 2020 · 3 comments
Open

Unite All Logging into a Single Handler #6317

nisdas opened this issue Jun 19, 2020 · 3 comments

Comments

@nisdas
Copy link
Member

@nisdas nisdas commented Jun 19, 2020

💎 Issue

Background

Unite all our different loggers into a single handler.

Description

Currently we run 3 different handlers, the main one is logrus through which a large amount of our
logs are logged out. The other 2 loggers are the geth logger and ipfs logger, these 2 loggers are only activated when we want trace logging. However due to them being different loggers, having all 3 of them in a single screen is confusing and difficult to read.

To resolve this issue, we would need to unite all the relevant libp2p and discoveryV5 logs into logrus.

@prestonvanloon
Copy link
Member

@prestonvanloon prestonvanloon commented Jul 6, 2020

Any idea how to go about this? It seems unlikely that we'll be able to convince go-ethereum or libp2p to use logrus.

Does their log API allow writing to some io.Writer? If so, we can pipe it to logrus Logger.Writer.
https://godoc.org/github.com/sirupsen/logrus#Logger.Writer

@prestonvanloon prestonvanloon added this to the Diamond milestone Jul 6, 2020
@nisdas
Copy link
Member Author

@nisdas nisdas commented Jul 7, 2020

I think we can conform go-ethereum's logs to use logrus, as it just needs a defined api. However libp2p is a bit more trickier, I will have to see how it works and whether it is possible.

@rauljordan rauljordan mentioned this issue Aug 5, 2020
0 of 10 tasks complete
@prestonvanloon prestonvanloon removed this from the Diamond milestone Nov 20, 2020
@prestonvanloon
Copy link
Member

@prestonvanloon prestonvanloon commented Nov 20, 2020

Removing from v1 milestone. This is nice to have but low priority and not enough time to complete it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.