276c5cc883
Changelog:
1.6.1
Fixed deadlock in daily_file_sink that happened while cleaning older files. Thanks @IIFE for reporting(#1570) and for fixing(#1571).
Fixed ringbuffer_sink::last_raw() and ringbuffer_sink::last_formatted() that didn't return latest elements. Thanks @vekkuli for reporting and fixing (#1563).
Fixed missing symbol wstr_to_utf8buf(..) in windows dll build. Thanks @haquocviet for reporting (#1569).
Bumped bundled fmt to version 6.2.1.
1.6.0
What's new
Load log levels from environment variable SPDLOG_LEVEL :
#include "spdlog/cfg/env.h"
...
spdlog::cfg::load_env_levels();
$ # set log level to debug
$ SPDLOG_LEVEL=debug && ./example
$ # set to info except for mylogger which is set to trace:
$ SPDLOG_LEVEL=info,mylogger=trace && ./example
$ # turn off all logging except for mylogger which is set to debug::
$ SPDLOG_LEVEL=off,mylogger=debug && ./example
Load log levels from argv (e.g. ./example SPDLOG_LEVEL=debug):
#include "spdlog/cfg/argv.h"
...
spdlog::cfg::load_argv_levels(argc, argv);
New windows eventlog sink . Thanks @ban-dana (#1418).
New tcp sink that sends log messages in tcp to a remote server. Thanks @Proheeler (#1426).
Extend spdlog with your own flags in the log pattern. See wiki for details.
Support for building spdlog as dll under windows. Thanks vejmartin (#1467, 3b73278, 5b3a183).
Bump the bundled fmt version to 6.2.0 .
Fixes and Improvements
Prevent race condition when SPDLOG_PREVENT_CHILD_FD is defined. Thanks @dominicpoeschko (#1423).
Fix race condition in the filename() function in the file sinks. Thanks @tt4g (#1430, #1431).
Fix ansicolor_sink::set_color(..) - can cause memory violation if user provides a custom color code that points to stack memory (#1540, 0b36d4e). Thanks @caizongchao for reporting.
Fix potential buffer overflow in color_sinks if creating multiple color sinks in the same logger and one of them has a pattern without color flags (#1452, 64de880). Thanks @dominicpoeschko for reporting.
Optimize cases when string_view is passed to the logger to avoid unnecessary fmt::format. Thanks dominicpoeschko (#1424) .
Support for max files in daily logger - delete oldest files after creating the daily file. Thanks @ruoshui1314 (#1394).
Fix deprecated warning with C++14 and external fmt lib (#1439). Thanks @ClausKlein for reporting.
Optimize colos sinks to use std::array instead of map to find color codes (
|
||
---|---|---|
.. | ||
buildlink3.mk | ||
DESCR | ||
distinfo | ||
Makefile | ||
PLIST |