Add log-backtrace option to show backtraces along with logging

This commit is contained in:
Yuki Omoto 2023-01-12 00:17:48 +09:00
parent 1e4f90061c
commit 4e2a3567bc
8 changed files with 83 additions and 4 deletions

View file

@ -1411,6 +1411,8 @@ options! {
"what location details should be tracked when using caller_location, either \
`none`, or a comma separated list of location details, for which \
valid options are `file`, `line`, and `column` (default: `file,line,column`)"),
log_backtrace: Option<String> = (None, parse_opt_string, [TRACKED],
"add a backtrace along with logging"),
ls: bool = (false, parse_bool, [UNTRACKED],
"list the symbols defined by a library crate (default: no)"),
macro_backtrace: bool = (false, parse_bool, [UNTRACKED],