2015-01-02 14:35:03 +00:00
|
|
|
package golog
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/fluffle/goirc/logging"
|
2018-09-06 21:15:14 +00:00
|
|
|
log "github.com/fluffle/golog/logging"
|
2015-01-02 14:35:03 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// Simple adapter to utilise my logging package with goirc.
|
|
|
|
// Just import this package alongside goirc/client and call
|
|
|
|
// golog.Init() in your main() to set things up.
|
|
|
|
func Init() {
|
2015-01-02 15:07:17 +00:00
|
|
|
l := log.NewFromFlags()
|
2015-01-02 14:35:03 +00:00
|
|
|
l.SetDepth(1)
|
|
|
|
logging.SetLogger(l)
|
|
|
|
}
|