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
228 B

9 years ago
  1. package logger
  2. import (
  3. cfg "github.com/tendermint/go-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. }