Skip to content

Commit

Permalink
default flag
Browse files Browse the repository at this point in the history
  • Loading branch information
name5566 committed Dec 19, 2016
1 parent 95ff6f7 commit 44a1887
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion log/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package log_test

import (
"github.com/name5566/leaf/log"
l "log"
)

func Example() {
Expand All @@ -12,7 +13,7 @@ func Example() {
log.Error("My name is %v", name)
// log.Fatal("My name is %v", name)

logger, err := log.New("release", "", 0)
logger, err := log.New("release", "", l.LstdFlags)
if err != nil {
return
}
Expand Down

0 comments on commit 44a1887

Please sign in to comment.