Renamed file to pattern_forammter.h and fixed utc support

This commit is contained in:
gabime
2018-07-07 16:15:17 +03:00
parent cbc4db8649
commit c9331594bb
7 changed files with 17 additions and 14 deletions

View File

@@ -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);
}
//