Example #1
0
func main() {
	err := logs.InitFromXMLFile("./config.xml")
	if err != nil {
		//panic(err)
		os.Stderr.WriteString(err.Error())
		os.Exit(1)
	}

	defer logs.Flush()

	logs.Info("INFO1")
	logs.Debugf("DEBUG %v", 1)
	logs.ERROR().Println("ERROR().Println")
}
Example #2
0
File: app.go Project: caixw/typing
func Close() {
	db.Close()
	logs.Flush()
}