summaryrefslogtreecommitdiff
path: root/vendor/github.com/fluffle/goirc/logging/golog/golog.go
blob: 5b124929f2173ac4d3cd5d5f09122aee49969a94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package golog

import (
	log "github.com/fluffle/golog/logging"
	"github.com/fluffle/goirc/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)
}