summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/spdlog
Commit message (Collapse)AuthorAgeFilesLines
* spdlog=v1.14.1Martin Jansa2024-05-041-1/+1
| | | | | | | | | | | | | | | | 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>
* spdlog: upgrade 1.13.0 -> 1.14.0Wang Mingyu2024-05-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* spdlog: upgrade 1.12 -> 1.13alperak2024-01-191-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* spdlog: upgrade 1.11.0 -> 1.12.0Markus Volk2023-07-103-79/+2
| | | | | | | - remove unneeded patches Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* spdlog: fix build error for master fmtWang Mingyu2023-05-172-0/+45
| | | | | | | | | | | | 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>
* spdlog: Do not use LFS64 functions with muslKhem Raj2022-12-312-1/+33
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* spdlog: upgrade 1.10.0 -> 1.11.0Wang Mingyu2022-11-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* spdlog: Fix CMake flagCarsten Bäcker2022-08-191-2/+2
| | | | | | https://github.com/gabime/spdlog/blob/eb3220622e73a4889eee355ffa37972b3cac3df5/CMakeLists.txt#L72 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* spdlog: update to v1.10.0Markus Volk2022-08-062-71/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* spdlog: remove header-only leftoverStefan Herbrechtsmeier2022-03-291-4/+0
| | | | | Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* spdlog: Update the external fmt patchKhem Raj2022-01-251-17/+59
| | | | | | Complete the tweakme.h inclusion Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes: Update SRC_URI branch and protocolsRichard Purdie2021-11-031-1/+1
| | | | | | | | | 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>
* spdlog: update 1.8.2 -> 1.9.2Alexander Kanavin2021-09-081-1/+1
| | | | | Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Convert to new override syntaxMartin Jansa2021-08-031-2/+2
| | | | | | | | | | 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>
* spdlog: upgrade 1.8.1 -> 1.8.2zhengruoqin2020-12-181-1/+1
| | | | | Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* spdlog: Fix recipe so other recipes can use spdlog with external fmt.Philip Balister2020-12-032-2/+29
| | | | | | | | | | * 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>
* spdlog: upgrade 1.8.0 -> 1.8.1Zang Ruochen2020-10-151-1/+1
| | | | | Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* spdlog: upgrade 1.7.0 -> 1.8.0Zang Ruochen2020-09-101-1/+1
| | | | | Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* spdlog: Upgrade to 1.7.0Khem Raj2020-07-311-2/+4
| | | | | | Use external fmt package Signed-off-by: Khem Raj <raj.khem@gmail.com>
* spdlog: Update 1.3.1 to v1.5.0Nicolas SALMIN2020-02-211-1/+1
| | | | | | | 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>
* spdlog: add first recipeHasan MEN2019-02-281-0/+19
* 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>