You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
236 B

  1. package logger
  2. import (
  3. cfg "github.com/tendermint/tendermint/config"
  4. )
  5. var config cfg.Config = nil
  6. func init() {
  7. cfg.OnConfig(func(newConfig cfg.Config) {
  8. config = newConfig
  9. Reset() // reset log root upon config change.
  10. })
  11. }