// Compatible with std lib func ExampleNew() { l := log.New(os.Stdout, "", log.Llevel) l.Println("notice") // Output: // <6>notice }
func ExampleOutput() { l := log.New(os.Stdout, "", log.Lshortfile) l.DoCodeInfo(true) output(l, "output") // Output: // api_test.go:18: output }