1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-03 16:38:31 +00:00

Write to logfile, cut some of logging

This commit is contained in:
Kane York 2015-10-28 17:31:44 -07:00
parent 014e7bc5e5
commit 6c422b8782
2 changed files with 14 additions and 7 deletions

View file

@ -44,6 +44,12 @@ func main() {
Addr: conf.ListenAddr,
}
logFile, err := os.OpenFile("output.log", os.O_WRONLY | os.O_APPEND | os.O_CREATE, 0644)
if err != nil {
log.Fatal("Could not create logfile: ", err)
}
log.SetOutput(logFile)
server.SetupServerAndHandle(conf, nil)
go commandLineConsole()