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:
parent
014e7bc5e5
commit
6c422b8782
2 changed files with 14 additions and 7 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue