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.

15 lines
247 B

  1. package state
  2. import (
  3. "github.com/op/go-logging"
  4. )
  5. var log = logging.MustGetLogger("state")
  6. func init() {
  7. logging.SetFormatter(logging.MustStringFormatter("[%{level:.1s}] %{message}"))
  8. }
  9. func SetStatesLogger(l *logging.Logger) {
  10. log = l
  11. }