mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 02:19:35 +08:00
Renamed file to pattern_forammter.h and fixed utc support
This commit is contained in:
@@ -57,9 +57,9 @@ inline std::shared_ptr<logger> get(const std::string &name)
|
||||
// Set global formatting
|
||||
// example: spdlog::set_pattern("%Y-%m-%d %H:%M:%S.%e %l : %v");
|
||||
//
|
||||
inline void set_pattern(const std::string &format_string)
|
||||
inline void set_pattern(const std::string &format_string, pattern_time_type time_type = pattern_time_type::local)
|
||||
{
|
||||
details::registry::instance().set_pattern(format_string);
|
||||
details::registry::instance().set_pattern(format_string, time_type);
|
||||
}
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user