Beautify logs with xlog

This commit is contained in:
Andreas Neue
2016-03-12 13:09:25 +01:00
parent 13379b29ea
commit 1dea72f6c7
11 changed files with 60 additions and 48 deletions
+3 -2
View File
@@ -5,16 +5,17 @@ package modules
import (
"bytes"
"fmt"
"log"
"os/exec"
"strings"
"code.dnix.de/an/xlog"
"github.com/sorcix/irc"
)
func init() {
MsgHandlers["fortune"] = fortuneHandleMessage
log.Println("Initializing fortune module")
xlog.Info("Fortune module initialized")
}
func fortuneHandleMessage(m *irc.Message) {