mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-04-12 23:27:17 +03:00
21 lines
281 B
Go
21 lines
281 B
Go
package sshchat
|
|
|
|
import (
|
|
"bytes"
|
|
|
|
"github.com/alexcesaro/log"
|
|
"github.com/alexcesaro/log/golog"
|
|
)
|
|
|
|
var logger *golog.Logger
|
|
|
|
func SetLogger(l *golog.Logger) {
|
|
logger = l
|
|
}
|
|
|
|
func init() {
|
|
// Set a default null logger
|
|
var b bytes.Buffer
|
|
SetLogger(golog.New(&b, log.Debug))
|
|
}
|