mirror of
https://github.com/gabime/spdlog.git
synced 2025-10-02 03:19: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:
@@ -106,6 +106,15 @@ enum class async_overflow_policy
|
||||
discard_log_msg // Discard the message it enqueue fails
|
||||
};
|
||||
|
||||
//
|
||||
// Pattern time - specific time getting to use for pattern_formatter.
|
||||
// local time by default
|
||||
//
|
||||
enum class pattern_time
|
||||
{
|
||||
local, // use variant of time similar to std::localtime for std::tm
|
||||
utc // use variant of time similar to std::gmtime for std::tm
|
||||
};
|
||||
|
||||
//
|
||||
// Log exception
|
||||
|
Reference in New Issue
Block a user