mirror of https://github.com/fluffle/goirc
16 lines
350 B
Go
16 lines
350 B
Go
package golog
|
|
|
|
import (
|
|
"github.com/fluffle/goirc/logging"
|
|
log "github.com/fluffle/golog/logging"
|
|
)
|
|
|
|
// 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() {
|
|
l := log.NewFromFlags()
|
|
l.SetDepth(1)
|
|
logging.SetLogger(l)
|
|
}
|