mirror of
https://github.com/makeworld-the-better-one/amfora.git
synced 2024-11-25 22:53:02 +03:00
21 lines
246 B
Go
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
|
||
|
}
|