1
0
mirror of https://github.com/nxshock/gron.git synced 2024-11-27 03:41:00 +05:00
gron/log.go
nxshock 252b2c7e80 More changes
* new project name is gron
* add config file support
* add ability to disable webui
* makefile creates position independent executable
2022-03-27 12:39:24 +05:00

15 lines
202 B
Go

package main
import (
"os"
)
var logFile *os.File
func initLogFile() error {
var err error
logFile, err = os.OpenFile(config.LogFilePath, os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0644)
return err
}