1
0
mirror of https://github.com/makew0rld/amfora.git synced 2024-11-03 02:37:23 -05:00
amfora/logger/logger.go
2020-06-18 16:54:48 -04:00

21 lines
246 B
Go

package logger
// For debugging
import (
"log"
"os"
)
var Log *log.Logger
func Init() error {
f, err := os.Create("debug.log")
if err != nil {
return err
}
Log = log.New(f, "", log.LstdFlags)
Log.Println("Started Log")
return nil
}