Skip to content

Commit

Permalink
flag usage the latest
Browse files Browse the repository at this point in the history
  • Loading branch information
lainio committed Nov 29, 2024
1 parent f8a4a7f commit d46afd8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ tracer API:
The err2 package supports Go's flags. All you need to do is to call [flag.Parse].
And the following flags are supported (="default-value"):
-err2-log="nil"
A name of the stream currently supported stderr, stdout or nil
-err2-panic-trace="stderr"
A name of the stream currently supported stderr, stdout or nil
-err2-log stream
stream for logging: nil -> log pkg
-err2-panic-trace stream
stream for panic tracing (default stderr)
-err2-ret-trace stream
stream for error return tracing: stderr, stdout
-err2-trace="nil"
A name of the stream currently supported stderr, stdout or nil
stream for error return tracing: stderr, stdout
-err2-trace stream
stream for error tracing: stderr, stdout
Note that you have called [SetErrorTracer] and others, before you call
[flag.Parse]. This allows you set the defaults according your app's need and allow
Expand Down

0 comments on commit d46afd8

Please sign in to comment.