quill v2.1.0 Release Notes
-
๐ Improvements
๐ง This version includes breaking changes to the API. Those changes are related to how quill is configured, before calling
quill::start()
to start the backend thread.โก๏ธ Check the updated examples.
๐ง Config.h - contains runtime configuration options
๐ง TweakMe.h - contains compile time configuration
0๏ธโฃ For example
quill::set_default_logger_handler(...)
has been removed. To set a default filehandler :// create a handler quill::Handler* file_handler = quill::file_handler("test.log", "w"); file_handler->set_pattern( "%(ascii_time) [%(thread)] %(fileline:<28) %(level_name) %(logger_name:<12) - %(message)", "%Y-%m-%d %H:%M:%S.%Qms", quill::Timezone::GmtTime); // set the handler as the default handler for any newly created logger in the config quill::Config cfg; cfg.default_handlers.emplace_back(file_handler); // configure must always be called prior to `start()` quill::configure(cfg); quill::start();
- โ Removed some API functions from
Quill.h
that were previously used for configuration. Instead,quill::Config
object has to be created. For examplequill::config::set_backend_thread_cpu_affinity(1);
has been removed and instead the following code is needed :
quill::Config cfg; cfg.backend_thread_cpu_affinity = 1; quill::configure(cfg);
QUILL_CHRONO_CLOCK
has been moved fromTweakMe.h
toConfig.h
. It is now possible to switch betweenrdtsc
andsystem
clocks without re-compiling. See example_trivial_system_clock.cppQUILL_RDTSC_RESYNC_INTERVAL
has been moved fromTweakMe.h
toConfig.h
.- ๐ฒ It is now possible to log user timestamps rather than the system's. This feature is useful for time simulations. See example_custom_clock.cpp and example_custom_clock_advanced.cpp
- ๐ Previously the logger names were limited to a maximum of 22 characters. This limitation has been removed.
- โ Added support for gcc 7.5.0. (#178)
- โก๏ธ Updated bundled fmt to 9.0.0
- โ Removed some API functions from