mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
Fix #2419 by documenting the set_pattern behaviour
This commit is contained in:
parent
d7690d8e7e
commit
6c95f4c816
@ -319,6 +319,10 @@ public:
|
|||||||
// each sink will get a separate instance of the formatter object.
|
// each sink will get a separate instance of the formatter object.
|
||||||
void set_formatter(std::unique_ptr<formatter> f);
|
void set_formatter(std::unique_ptr<formatter> f);
|
||||||
|
|
||||||
|
// set formatting for the sinks in this logger.
|
||||||
|
// equivalent to
|
||||||
|
// set_formatter(make_unique<pattern_formatter>(pattern, time_type))
|
||||||
|
// Note: each sink will get a new instance of a formatter object, replacing the old one.
|
||||||
void set_pattern(std::string pattern, pattern_time_type time_type = pattern_time_type::local);
|
void set_pattern(std::string pattern, pattern_time_type time_type = pattern_time_type::local);
|
||||||
|
|
||||||
// backtrace support.
|
// backtrace support.
|
||||||
|
Loading…
Reference in New Issue
Block a user