| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixed compatibility issue between c++17 and c++11 (#3081).
Fixed creating folders under windows when full path with drive letter is given (#3079).
Added mdc sample. Note: mdc is not supported in async loggers.
* v1.14.0 introduced in:
https://git.openembedded.org/meta-openembedded/commit/?id=a40b1fa392d20ebb29e38374d0f7ce1494bb797f
causes:
undefined reference to `spdlog::get(char const*)'
in various consumers, more details in:
https://github.com/gabime/spdlog/issues/3081
Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Changelog:
===========
-Updated bundled fmt to version 10.2.1.
-Mapped Diagnostic Context (MDC) support
-MDC is a simple map of key->string values stored in thread local storage whose content will be printed by the loggers.
-spdlog::mdc::put("mdc_key_1", "mdc_value_1");
-spdlog::info("Hello, {}", "World!"); // => [2024-04-26 02:08:05.040] [info] [mdc_key_1:mdc_value_1] Hello, World!
-Add milliseconds support to stopwatch
-Add std::string_view overloads for logger accessor
-Make async_logger::flush() synchronous - wait for the flush operation to complete before returning
-Use _stat() on Windows to be more UTF8 friendly
-Add details about how compile time macros work
-Fix typos found by codespell
-Expose the flusher thread object to user in order to allow setting of thread name and thread affinity when needed
-Fix the problem of compilation failure under MINGW
-Add missing include in circular_q.h
-Don't remove previous defaullt logger from registry in set_default_logger.
-Remove the legacy AnalyzeTemporaryDtors option from .clang-tidy.
-Updated INSTALL.md has to better reflect compiler info
-Fixed README.md example
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Dropped SPDLOG_BUILD_TESTS and SPDLOG_BUILD_BENCH from EXTRA_OECMAKE because already OFF
License-Update: Use upstream's LICENSE file instead of Poky's MIT license.
Changelog:
Enhancements
Qt Sink: Allow for darker colors for light backgrounds
Set CMAKE_BUILD_TYPE only for single-config generators
Provide spdlog_header_only in build directory export
Add SPDLOG_TO_VERSION to compare spdlog version
Support async_overflow_policy::discard_new
Make syslog_sink.h's syslog_prio_from_level protected
Fix OS availability check of pthread_threadid_np for iOS
Add .git-blame-ignore-revs to ignore clang-format related commits
Match SPDLOG_CONSTEXPR_FUNC to FMT_CONSTEXPR
Bug Fixes
Check fd_ is not nullptr in file_helper to prevent possible crash if disk is full
Fix encoding issue in qt_sinks
Fix wrong thread_id (TID) in systemd_sink.h
Update example.cpp to fix the vector issue in bin_example
Fix MSVC compile flag for no exceptions
Fix bug in circular_q::size()
Fix link to fmt license file
Maintenance
Added and updated various tests for circular_q.
Removed obsolete part from CMake configuration files
Removed policy_max from cmake_minimum_required(..).
Updated clang-format to google style and updated various formatting scripts.
Bumped to catch2
Signed-off-by: alperak <alperyasinak1@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
| |
- remove unneeded patches
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
error message:
include/spdlog/common.h:168:111: error: 'basic_runtime' is not a member of 'fmt'
Add fix-build-for-master-fmt.patch:
* update fmt_runtime_string macro
* fix build of updated macro
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Changelog:
==========
Update to fmt lib version 9.1.0 #2346, #2485, #2512, #2517 .
Fix template instantiation warning #2336 .
Event handlers improvements #2342, #2375 .
Allow modifying the used Android buffer ID #2358.
Fix clone in async test #2364.
Custom formatting optimization #2365.
Fix C++14 builds for gcc 4.x (#2333) #2372 .
Add minor version to CMake's SOVERSION #2376
Allow compilation with FMT_ENFORCE_COMPILE_STRING #2381.
Fix pkg-config generation #2383.
Remove unused code from null_mutex #2385.
Fix redundant std::move #2396.
Remove the empty file if in first period in hourly logger #2386.
Add reset_overrun_counter() function to the async logging #2399
Set C++20 in CMake when SPDLOG_USE_STD_FORMAT option is turned on #2402.
Fix mingw test #2415.
Support for any std::chrono::duration type in flush_every(..) #2439.
Fix implicit casting of level_enum #2443.
Comment fix #2445.
Fix gcc 4.x build #2449.
Add openSUSE installation instructions #2468.
Fixed missing include file in stopwatch.h #2434.
Support for omitting source info by defining SPDLOG_NO_SOURCE_LOC #2476.
Added SPDLOG_BUILD_PIC build option to CMake #2475.
Fix include windows.h #2495.
Workaround gcc 12 warnings #2498, #2499 .
Migrate to Github Actions CI #2500.
Replace iterator difference with std::distance #2509
Export targets file to build directory at configure time #2514, #2515.
MongoDB sink improvements #2519.
Fix shadow warning in dist_sink #2431.
Fixed msvc warning C4800 in win_eventlog_sink
Check IsDebuggerPresent() in msvc_sink before doing actual work #2408. To use old behavior pass false to the msvc_sink constructor.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
https://github.com/gabime/spdlog/blob/eb3220622e73a4889eee355ffa37972b3cac3df5/CMakeLists.txt#L72
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bump fmt to version 8.1.1.
Added file event handlers #2165, #2169 Thanks @seker.
You can get callbacks from spdlog before/after log file has been opened or closed.
This is useful for cleanup procedures or for adding something to the start/end of the log files. Example:
void file_events_example()
{
// pass the spdlog::file_event_handlers to file sinks for open/close log file notifications
spdlog::file_event_handlers handlers;
handlers.before_open = [](spdlog::filename_t filename) { spdlog::info("Before opening {}", filename); };
handlers.after_open = [](spdlog::filename_t filename, std::FILE *fstream) { fputs("After opening\n", fstream); };
handlers.before_close = [](spdlog::filename_t filename, std::FILE *fstream) { fputs("Before closing\n", fstream); };
handlers.after_close = [](spdlog::filename_t filename) { spdlog::info("After closing {}", filename); };
auto my_logger = spdlog::basic_logger_st("some_logger", "logs/events-sample.txt", true, handlers);
}
Fixed rotating file sink: when disk is full log rotation resulted zero size log files. #2261. (thanks @kishorekrd for reporting).
Added new udp_sink #2090. Thanks @CJLove
(Experimental) Option to depend on std::format instead of fmtlib (set SPDLOG_USE_STD_FORMAT and use C++20). #2170 Thanks @sylveon .
Improved file name for hourly file sink #2047. Thanks @seker .
Added code location information for error handler #2048. Thanks @D-r-P-3-p-p-3-r .
Fixed qt_sinks ctor #2056. Thanks @mguludag .
List Debian instructions in the README #2057. Thanks @mr-c ,
Updated to latest Travis CI Build Status #2094. Thanks @jspraul .
Fixed unhandled errors in udp sink. #2096. Thanks @mmarkeloff .
CMake improvement regarding cmake_minimum_required and policy. #2098. Thanks @reddwarf69 .
Fixed mongo_sink compile in older gcc versions #2102 . Thanks @yzz-ihep .
Remove mutable keyword from mutex_ member in of sinks. #2140 . Thanks @sunlong169 .
Fix typos #2171. Thanks @rex4539 .
Fixed udp sink build on FreeBSD #2172. Thanks @keith-dev .
Avoid c-style casting in stdout sinks. #2179. Thanks @ibmibmibm .
Fixed tweakme.h compile error under msvcs when SPDLOG_FUNCTION is defined #2182. Thanks @Light3039 .
Fixed compiling errors on AIX #2181. Thanks @lisr .
Fixed runtime when build with -fsanitize=cfi #1972. Thanks @bansan85 .
Remove extraneous semicolon #2190. Thanks @sylveon.
Added example how to replace default logger. #2194. Thanks @rioki .
Fixed usage of ranges and to_hex in the same compile unit #2195. Thanks @patrickroocks .
Reduce warnings with pedantic compiler -Wuseless-cast #2216. Thanks @vnepogodin .
Support using std::span in to_hex #2228. Thanks @timblechmann .
Reset current size if rotated files on open #2234. Thanks @SpriteOvO .
Allow forward-declaration of level_enum #2245. Thanks @daverigby .
Call localtime() only if pattern_formatter really needs it #2246. Thanks @doug1234 .
Removed unneeded spaces from code. #2249. Thanks @PixelParas .
Added a few missing files/directories to the gitignore #2255. Thanks @LeonBrands .
Fixed issue #2201 (Pattern width is not applied for missing source information). #2269. Thanks @kyuheon-kr .
Limit max number of rotating files to 200000. (Fixed #1905). Thanks @surfycui (#2273)
pattern_formatter: fix reorder-ctor warning #2278. Thanks @adriweb .
Fixed spdlogConfig.cmake when built with SPDLOG_FMT_EXTERNAL_HO #2300. Thanks @adamcalhoon .
Fixed fopen_s(..) error handling when PREVENT_CHILD_FD is defined #2305. Thanks @nUl1.
Fixed compiler error when building on Windows with #define UNICODE #2317. Thanks @risa2000 .
Added option to enable formatting of systemd sink #2324, #2320. Thanks @Delgan .
Added optional "ident" argument to systemd sink constructor #2328. Thanks @Delgan .
Special thanks to @tt4g for his support in answering community questions and issues.
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
| |
Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
Complete the tweakme.h inclusion
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
| |
This patch updates SRC_URIs using git to include branch=master if no branch is set
and also to use protocol=https for github urls as generated by the conversion script
in OE-Core.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
| |
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
This is the result of automated script (0.9.1) conversion:
oe-core/scripts/contrib/convert-overrides.py .
converting the metadata to use ":" as the override character instead of "_".
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
|
|
|
|
| |
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
* I enabled the shared library option to eliminate linker issues
with a package that used spdlog.
* Edited the tweak.h file so programs use the external fmt library
headers, not the oners in spdlog.
Signed-off-by: Philip Balister <philip@opensdr.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
| |
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
| |
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
Use external fmt package
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
| |
Please see https://github.com/gabime/spdlog/releases/tag/v1.5.0
Signed-off-by: Nicolas SALMIN <nicolas.salmin@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
* Now, spdlog library is enable under recipes-support. Just install with "spdlog-dev".
* It's also tested with populate-sdk.
Signed-off-by: Hasan MEN <hmen.56@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|