mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 10:29:02 +08:00
implement a flag (in this case, an enumeration) that allows control over the type; we make it an enum for possible expansions of time abstractions that might make it into the C++ standard in the future (see Howard Hinnant's date/timezone library) or might be usefully-available from the OS at some point in time
This commit is contained in:
@@ -66,7 +66,7 @@ public:
|
||||
void set_level(level::level_enum);
|
||||
level::level_enum level() const;
|
||||
const std::string& name() const;
|
||||
void set_pattern(const std::string&);
|
||||
void set_pattern(const std::string&, pattern_time = pattern_time::local);
|
||||
void set_formatter(formatter_ptr);
|
||||
|
||||
// automatically call flush() if message level >= log_level
|
||||
@@ -82,7 +82,7 @@ public:
|
||||
|
||||
protected:
|
||||
virtual void _sink_it(details::log_msg&);
|
||||
virtual void _set_pattern(const std::string&);
|
||||
virtual void _set_pattern(const std::string&, pattern_time);
|
||||
virtual void _set_formatter(formatter_ptr);
|
||||
|
||||
// default error handler: print the error to stderr with the max rate of 1 message/minute
|
||||
|
Reference in New Issue
Block a user