Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
iu0v1 committed Sep 17, 2016
1 parent 1100fe2 commit e7a4eb1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ func main() {
o := daslog.Options{
Destination: os.Stdout,
Prefix: "{{.O}} [{{.Q}}]: ",
LogLevel: daslog.UrgencyLevelCritical,
LogLevel: daslog.UrgencyLevelNotice,
}

l, err := daslog.New(o)
if err != nil {
fmt.Print(err)
fmt.Printf("daslog init error: %v\n", err)
return
}

Expand All @@ -27,5 +27,5 @@ func main() {
l.Info("test info message")

// error
l.Errorf("%s %s %s", "test", "error", "message")
l.Errorf("%s %s %s\n", "test", "error", "message")
}

0 comments on commit e7a4eb1

Please sign in to comment.