v4.5.0
版本发布时间: 2024-06-26 21:52:16
odygrd/quill最新发布版本:v7.0.0(2024-09-06 06:50:45)
-
The backend now automatically sanitizes non-printable characters in log messages by converting them to their hexadecimal representation. This feature ensures logs contain only safe, readable characters. You can customize or disable this feature through the
BackendOptions
by modifying thecheck_printable_char
callback.std::function<bool(char c)> check_printable_char = [](char c) { return c >= ' ' && c <= '~'; };
-
Added
StringRef
, a utility class for passing string arguments by reference without copying. Suitable for string literals or immutable strings with a guaranteed persistent lifetime. For example#include "quill/StringRef.h" static constexpr std::string_view sv {"string_view"}; LOG_INFO(logger, "{} {}", quill::utility::StringRef{sv}, quill::utility::StringRef{"string_literal"});
-
Renamed
write_log_message
towrite_log
inSink
. The formattedlog_message
andprocess_id
are now also provided. This enhancement supports use cases where the formattedlog_statement
passed to theSink
can be ignored and overwritten with a custom format, allowing a singleLogger
to output different formats to variousSinks
(#476) -
Fixed a bug in JSON logging where previously cached named arguments could erroneously append to subsequent log statements. (#482)
1、 quill-4.5.0.zip 1.39MB