summaryrefslogtreecommitdiff
path: root/xmpp/log.go
blob: 4ac0f885e6769f1dc8f2e6f62c36ea61a67613e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package xmpp

import (
	"log"
)

type logger struct {
	prefix string
}

func (l logger) Write(p []byte) (n int, err error) {
	log.Printf("%s%s", l.prefix, string(p))

	return len(p), nil
}