File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -108,14 +108,14 @@ tracer API:
108
108
The err2 package supports Go's flags. All you need to do is to call [flag.Parse].
109
109
And the following flags are supported (="default-value"):
110
110
111
- -err2-log="nil"
112
- A name of the stream currently supported stderr, stdout or nil
113
- -err2-panic-trace="stderr"
114
- A name of the stream currently supported stderr, stdout or nil
111
+ -err2-log stream
112
+ stream for logging: nil -> log pkg
113
+ -err2-panic-trace stream
114
+ stream for panic tracing (default stderr)
115
115
-err2-ret-trace stream
116
- stream for error return tracing: stderr, stdout
117
- -err2-trace="nil"
118
- A name of the stream currently supported stderr, stdout or nil
116
+ stream for error return tracing: stderr, stdout
117
+ -err2-trace stream
118
+ stream for error tracing: stderr, stdout
119
119
120
120
Note that you have called [SetErrorTracer] and others, before you call
121
121
[flag.Parse]. This allows you set the defaults according your app's need and allow
You can’t perform that action at this time.
0 commit comments