Example #1
0
func Test_CreateLog(t *testing.T) {
	e := llog.New(f, llog.INFO)
	if e != nil {
		t.Error("failed to create log : " + e.Error())
		return
	}
	pm("", "Start of test")
	llog.Close()
}
Example #2
0
func Example() {
	e := llog.New("/foo/bar", llog.INFO)
	if e != nil {
		fmt.Println("failed to create log : " + e.Error())
		return
	}
	llog.PrintInfo("My ID", "Test of llog")
	llog.Close()
}
Example #3
0
func Test_EndLogging(t *testing.T) {
	pm("", "End of test")
	llog.Close()
}