Exemple #1
0
// Compatible with std lib
func ExampleNew() {
	l := log.New(os.Stdout, "", log.Llevel)
	l.Println("notice")
	// Output:
	// <6>notice

}
Exemple #2
0
func ExampleOutput() {
	l := log.New(os.Stdout, "", log.Lshortfile)
	l.DoCodeInfo(true)
	output(l, "output")
	// Output:
	// api_test.go:18: output
}