mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
Added the last few suggested changes.
This commit is contained in:
parent
584d77237e
commit
28b9adf794
@ -1278,22 +1278,18 @@ SPDLOG_INLINE void pattern_formatter::handle_flag_(char flag, details::padding_i
|
|||||||
|
|
||||||
case ('u'): // elapsed time since last log message in nanos
|
case ('u'): // elapsed time since last log message in nanos
|
||||||
formatters_.push_back(details::make_unique<details::elapsed_formatter<Padder, std::chrono::nanoseconds>>(padding));
|
formatters_.push_back(details::make_unique<details::elapsed_formatter<Padder, std::chrono::nanoseconds>>(padding));
|
||||||
need_localtime_ = true;
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ('i'): // elapsed time since last log message in micros
|
case ('i'): // elapsed time since last log message in micros
|
||||||
formatters_.push_back(details::make_unique<details::elapsed_formatter<Padder, std::chrono::microseconds>>(padding));
|
formatters_.push_back(details::make_unique<details::elapsed_formatter<Padder, std::chrono::microseconds>>(padding));
|
||||||
need_localtime_ = true;
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ('o'): // elapsed time since last log message in millis
|
case ('o'): // elapsed time since last log message in millis
|
||||||
formatters_.push_back(details::make_unique<details::elapsed_formatter<Padder, std::chrono::milliseconds>>(padding));
|
formatters_.push_back(details::make_unique<details::elapsed_formatter<Padder, std::chrono::milliseconds>>(padding));
|
||||||
need_localtime_ = true;
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ('O'): // elapsed time since last log message in seconds
|
case ('O'): // elapsed time since last log message in seconds
|
||||||
formatters_.push_back(details::make_unique<details::elapsed_formatter<Padder, std::chrono::seconds>>(padding));
|
formatters_.push_back(details::make_unique<details::elapsed_formatter<Padder, std::chrono::seconds>>(padding));
|
||||||
need_localtime_ = true;
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default: // Unknown flag appears as is
|
default: // Unknown flag appears as is
|
||||||
|
Loading…
Reference in New Issue
Block a user