amfora/logger/logger.go

21 lines
246 B
Go
Raw Normal View History

2020-06-18 23:54:48 +03:00
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
}