19 static constexpr std::string_view
DEFAULT_PATTERN =
"[%Y-%m-%d %H:%M:%S.%e] [%l] [%n] %v";
28 [[nodiscard]]
const std::string&
getPattern() const noexcept {
return _pattern; }
31 enum class Token : std::uint8_t {
34 Hour, Minute, Second, Millisecond,
35 LevelFull, LevelShort,
38 SourceFile, SourceFunc, SourceLine,
43 Token token = Token::Literal;
47 void compile(std::string_view pattern);
50 std::vector<Piece> _pieces;
51 bool _needsTime =
false;
Thread-safe logging: loggers, sinks, patterns and macros.
Definition Terminal.hpp:8
A log record as passed to the sinks.
Definition LogMessage.hpp:18