diff options
author | Gabi Melman <gmelman1@gmail.com> | 2022-07-01 10:53:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-01 10:53:05 +0300 |
commit | 6c95f4c8168401badff89d0c16e3887ea91ea9ad (patch) | |
tree | 8713295be3cb08588cdfb2e89604bdc27e617a93 /include/spdlog | |
parent | d7690d8e7eed721d78b52e032e996a5d1ef47d6f (diff) |
Fix #2419 by documenting the set_pattern behaviour
Diffstat (limited to 'include/spdlog')
-rw-r--r-- | include/spdlog/logger.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index 14c719fc..068b5aa6 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -319,6 +319,10 @@ public: // each sink will get a separate instance of the formatter object. 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); // backtrace support. |