ethermint-archive icon indicating copy to clipboard operation
ethermint-archive copied to clipboard

Harmonise the log levels between ethermint, tendermint and go-ethereum

Open illya13 opened this issue 9 years ago • 5 comments

  • tendermint logging technology and log_level flag
  • ethereum logging technology and verbosity flag
  • ethermint, use one of above, which one, logging level flag ?

illya13 avatar Feb 18 '17 07:02 illya13

  • tendermint:

    • github.com/tendermint/go-logger
    • log_level flag
  • ethereum:

    • github.com/ethereum/go-ethereum/logger
    • github.com/ethereum/go-ethereum/logger/glog
    • no flag, add support of verbosity ?
  • ethermint:

    • follows Ethereum
    • github.com/ethereum/go-ethereum/logger
    • github.com/ethereum/go-ethereum/logger/glog
    • no flag, add support of verbosity ?
  • --verbosity value

    • Logging verbosity: 0=silent, 1=error, 2=warn, 3=info, 4=core, 5=debug, 6=detail (default: 3)
  • --vmodule value

    • Per-module verbosity: comma-separated list of = (e.g. eth/*=6,p2p=5)
  • logger.AddLogSystem(logger.NewStdLogSystem(os.Stdout, log.LstdFlags, logger.DebugLevel))

    • ?

illya13 avatar Feb 18 '17 12:02 illya13

At first pass, I think we should expose verbosity as a flag. Where is the ethereum log going to?

jaekwon avatar Feb 20 '17 04:02 jaekwon

you mean STDERR or STDOUT ?

illya13 avatar Feb 21 '17 07:02 illya13

@jaekwon don't we want to synchronize tendermint log_level flag and ethereum verbosity flag?

ramilexe avatar Apr 13 '17 02:04 ramilexe

Tendermint logging is being overhauled for 0.10. We should wait until then to move on this.

ebuchman avatar May 04 '17 22:05 ebuchman