Commit Graph

4416 Commits

Author SHA1 Message Date
gabime
866744e40e Added ci for SPDLOG_USE_STD_FORMAT=ON option 2023-09-22 18:24:45 +03:00
gabime
75028b3d40 Added ci for SPDLOG_USE_STD_FORMAT=ON option 2023-09-22 18:24:45 +03:00
gabime
90127164de Added ci for SPDLOG_USE_STD_FORMAT=ON option 2023-09-22 18:24:45 +03:00
gabime
e6b894665c Added ci for SPDLOG_USE_STD_FORMAT=ON option 2023-09-22 18:24:45 +03:00
gabime
243a840da7 Fixed test when using std format 2023-09-22 18:24:45 +03:00
gabime
32b2fa8877 Fixed tests 2023-09-22 18:24:45 +03:00
gabime
4965d6ef68 Bumped bundled fmt to version 10.1.1 2023-09-22 18:24:45 +03:00
gabime
11770fc7e5 Added comment in ringbuffer_sink.h 2023-09-22 18:24:45 +03:00
gabime
8f7400731e ringbuffer_sink: replaced last_raw() and last_formatted() with drain_raw() and drain_formatted() and added tests 2023-09-22 18:24:45 +03:00
gabime
d8829e7714 Added [[nodiscard]] qualifiers to circular_q 2023-09-22 18:24:45 +03:00
gabime
55f84d458b Return true from details::circular_q::full() if capacity is 0 2023-09-22 18:24:45 +03:00
gabime
a8b74096b2 Simplified details::circular_q by removing iterator support and updated tests 2023-09-22 18:24:45 +03:00
gabime
aacea38f9d Updated details::circular_q and added some tests for it 2023-09-22 18:24:45 +03:00
gabime
820baa886c Updated details::circular_q and added some tests for it 2023-09-22 18:24:45 +03:00
gabime
202260719f merge 2023-09-22 18:24:45 +03:00
gabime
647fc3ab56 Fix ci 2023-09-22 18:24:45 +03:00
gabime
39b6ead2bc Fix ci 2023-09-22 18:24:45 +03:00
gabime
bc3ef7d334 Fix ci 2023-09-22 18:24:45 +03:00
gabime
69149a3c76 Rebase v1.x 2023-09-22 18:24:45 +03:00
gabime
5993e78aac Removed SPDLOG_WCHAR_SUPPORT macro 2023-09-22 18:24:45 +03:00
gabime
7c054b6dba Inlined sink_it_ 2023-09-22 18:24:45 +03:00
gabime
54d402e094 Fixed tidy warning 2023-09-22 18:24:45 +03:00
gabime
6a53d6354b minor cleanup 2023-09-22 18:24:45 +03:00
gabime
a38add8456 Removed SPDLOG_NO_TLS and updated cmake 2023-09-22 18:24:45 +03:00
gabime
e1ee0c62a7 Replaced SPDLOG_CONSTEXPR and SPDLOG_NOEXCEPT macros with c++20 keywords 2023-09-22 18:24:45 +03:00
gabime
d7db2cf3aa Added some [[nodiscard]] annotations 2023-09-22 18:24:45 +03:00
gabime
6cac90b89a clang format 2023-09-22 18:24:45 +03:00
gabime
2ecc00e9c6 Simplified code 2023-09-22 18:24:45 +03:00
gabime
92daf6954b Removed backtrace feature 2023-09-22 18:24:45 +03:00
gabime
d94830814f Removed SPDLOG_WCHAR_TO_UTF8_SUPPORT 2023-09-22 18:24:45 +03:00
gabime
11ddcb2e91 Require c++20 standard 2023-09-22 18:24:45 +03:00
gabime
f530b2dbaa Upaded major ver to 2.0.0 2023-09-22 18:24:45 +03:00
gabime
213b2c0151 Bumped spdlog version to 1.12.0 2023-09-22 18:24:45 +03:00
gabime
b4004586e0 Fixed FMT_EXPORT to FMT_LIB_EXPORT in CMakeLists.txt 2023-09-22 18:24:45 +03:00
gabime
27c518d509 Updated bundled fmt to version 10.0.0 2023-09-22 18:24:45 +03:00
gabime
ea6d8fde1d Upaded major ver to 2.0.0 2023-09-22 18:24:45 +03:00
Gabi Melman
b9cb721b92
Update async_logger-inl.h 2023-09-22 02:42:37 +03:00
Gabi Melman
1d6dbc2a56
Fix code formatting of async_logger-inl.h 2023-09-22 02:42:00 +03:00
Yubin
b5b5043d42
Support async_overflow_policy::discard_new (#2876)
Reason for the discard_new policy: when there is an overflow, there
is usually some unexpected issue (a bug, or some other unexpected stuff).
And in case of unexpected issue, the first arrived log messages are usually
more important than subsequent ones. For example, some application
keep logging error messages in case of functionality failure, which,
when using async_overflow_policy::overrun_oldest, will overrun the
first arrived messages that may contain real reason for the failure.
2023-09-09 23:05:08 +03:00
gabime
d109e1dcd0 minor cleanup 2023-09-09 13:32:44 +03:00
gabime
a98d3ab0c7 clang format 2023-09-09 12:56:47 +03:00
neothenil
8014d6c31a
Fix encoding issue in qt_sinks (#2862)
Added support for utf8 in qt_color_sink
2023-09-09 12:52:10 +03:00
gabime
3aceda041b Fixed bench 2023-09-01 17:12:16 +03:00
gabime
7d0531b076 Removed policy_max from cmake_minimum_required(..) 2023-09-01 16:40:19 +03:00
Gabi Melman
47e04cf043
Update ci.yml 2023-08-31 00:29:17 +03:00
albert-github
81ce5fcdb7
Remove obsolete part from cmake configuration files (#2871)
Updating minimum CMake version to 3.11
2023-08-30 23:20:37 +03:00
mike
cedfeeb95f
Add SPDLOG_TO_VERSION to compare spdlog version (#2853)
You can use SPDLOG_VERSION to select the latest spdlog features
where available while falling back to older implementations otherwise.
Using SPDLOG_TO_VERSION() for the value to compare with is recommended.
for Example:
```c++
 void sink_it_(const details::log_msg &msg) override
 {
 #if SPDLOG_VERSION < SPDLOG_TO_VERSION(1,4,0)
     fmt::memory_buffer formatted;
 #else
     memory_buf_t formatted;
 #endif
     sinks::base_sink<Mutex>::formatter_->format(msg, formatted);
     // bala bala...
 }
```
2023-08-14 08:19:02 +03:00
Robert Maynard
2312489bdc
Provide spdlog_header_only in build directory export (#2846)
Fixes #2678
2023-08-07 23:25:21 +03:00
gabime
811bc4c7a9 Added another test for circular_q 2023-08-05 17:26:16 +03:00
gabime
1f8d36071e Fixed ci 2023-08-05 17:09:12 +03:00