Commit Graph

4130 Commits

Author SHA1 Message Date
gabime
fbba6dff20 Fix #2431 2022-10-31 23:23:57 +02:00
gabime
fdb1f5926e Fix fmt::vformat_to when SPDLOG_WCHAR_TO_UTF8_SUPPORT is defined 2022-10-31 22:56:29 +02:00
gabime
b59b4a2b45 Rvert suppressing msvc2017 warnings and fix ci instead 2022-10-31 22:52:01 +02:00
gabime
6c975fa13b Replace fmt::detail::vformat_to(buf,..) with fmt::vformat_to(fmt::appender(buf) 2022-10-31 18:43:38 +02:00
gabime
c627c66560 Replace fmt::detail::vformat_to(buf,..) with fmt::vformat_to(fmt::appender(buf) 2022-10-31 18:26:07 +02:00
gabime
130ff0c8db enable the ostream formatting for backward compatibility with fmt 8.x 2022-10-31 18:15:43 +02:00
gabime
31d6935b97 updated readme 2022-10-31 18:12:47 +02:00
gabime
14a29c03eb suppress warning 4307 when including format-inline.h under msvc 2017 2022-10-31 17:47:12 +02:00
gabime
a7e2bf161e Update user defined type example 2022-10-31 17:35:24 +02:00
gabime
070dd181df clang format 2022-10-31 17:09:45 +02:00
gabime
7147da468f Merge branch 'v1.x' of https://github.com/gabime/spdlog into v1.x 2022-10-31 17:04:20 +02:00
gabime
9125bda301 suppress "integral constant overflow" warning under msvc 2017 2022-10-31 17:03:53 +02:00
Gabi Melman
a4743370e2
Update appveyor.yml 2022-10-31 15:39:01 +02:00
Gabi Melman
867df8cf87
Update appveyor.yml
Added fatal warnings option to appveyor
2022-10-31 15:10:51 +02:00
gabime
8a0b2231b1 Renamed bench name 2022-10-31 14:01:38 +02:00
gabime
3499dfeeb4 Bump bundled fmtlib to version 1.9.1 2022-10-31 13:47:47 +02:00
刘耘呈
3c0e036cc9
Use 'SPDLOG_FMT_RUNTIME' to fix compilation error throwed MSVC and fmt 9.1.x (#2517)
* Use 'SPDLOG_FMT_RUNTIME' to fix compilation error throwed MSVC and fmt 9.1.x

* Fix #2512
2022-10-20 02:11:16 +03:00
Gabi Melman
bced424855
Merge pull request #2519 from sandorzm/v1.x
Mongo sink improvements
2022-10-19 22:37:29 +03:00
Sandor Magyar
5fba2867f5 Change mongocxx::exception handler to std::exception 2022-10-19 14:02:21 -04:00
Sandor Magyar
b5d361fc21 clang-format mongo_sink.h 2022-10-19 10:08:54 -04:00
Sandor Magyar
0674e79066 Improve arg passing and exceptions in mongo_sink 2022-10-19 09:53:33 -04:00
Sandor Magyar
5f67ef4d6f Remove pointless try block in mongo_sink 2022-10-18 20:25:32 -04:00
Sandor Magyar
1bb1f05d73 Adjust MongoCXX instance handling in mongo_sink
Changes suggested by @gabime on #2519
2022-10-18 20:13:17 -04:00
Gabi Melman
77429b2e2e
Merge pull request #2515 from puneetmatharu/v1.x
Export targets file to build directory at configure time
2022-10-18 13:19:13 +03:00
Sandor Magyar
a3c47cc682 Don't force Mongo sink to own MongoCXX instance
There can only be one instance in the whole program, so programs that use the
Mongo sink and also separately use MongoCXX may have problems if the Mongo sink
owns the instance. MongoCXX recommends that the main application manage its own
instance so configuration parameters can be passed to the constructor:
http://mongocxx.org/api/current/classmongocxx_1_1instance.html

However, this commit is not a breaking change. If no instance has been created
at construction time, the Mongo sink will still create and own the instance.
2022-10-17 17:32:08 -04:00
Sandor Magyar
0145223be1 Add numerical level to Mongo sink for easier queries
Filtering to a certain log level or above, a useful operation, can now be done
with an integer comparison as opposed to comparing to a list of strings in the
database query.
2022-10-17 16:15:23 -04:00
Sandor Magyar
f3b61c70ba Catch exception by reference to fix -Wcatch-value warning 2022-10-17 16:04:49 -04:00
Puneet Matharu
7768c6271c Export targets to build directory so that it can be found at configure time. 2022-10-17 10:02:14 +01:00
Gabi Melman
d011332616
Merge pull request #2509 from kin4stat/v1.x
Replace iterator difference with std::distance(revert #2030)
2022-10-15 00:41:16 +03:00
Daniil
93b9132b0a Replace iterator difference with std::distance 2022-10-13 12:29:48 +03:00
Gabi Melman
936697e5b1
Merge pull request #2500 from offa/ghactions_ci
Migrate to Github Actions CI
2022-10-03 18:52:35 +03:00
offa
cf6cdc5ba6 Replace Travis CI Badge with Github Actions 2022-10-03 16:04:40 +02:00
offa
ec81b321c2 Remove .travis.yml 2022-10-01 18:11:36 +02:00
offa
23fce5ffaa Migrate to Github Actions CI 2022-10-01 18:11:36 +02:00
Gabi Melman
7fa59cf555
Merge pull request #2498 from offa/gcc12_workaround
Workaround GCC 12 warning
2022-09-30 17:12:26 +03:00
offa
29b24f9e72 Use pragams instead of compile options 2022-09-30 13:20:15 +02:00
Gabi Melman
523a075f82
Merge pull request #2499 from offa/clang_cpp20_workaround
Workaround deprecation warning on Clang with C++20
2022-09-30 00:07:28 +03:00
offa
06f9953fa8 Workaround deprecation warning on Clang with C++20 2022-09-29 20:14:53 +02:00
offa
b8fdc9bf5d Workaround GCC 12 warning 2022-09-29 19:28:44 +02:00
Gabi Melman
7130676697
Merge pull request #2495 from panicgh/lowercase-windows-h
Use lower-case "windows.h" for case-sensitive file systems
2022-09-26 14:20:29 +03:00
Nicolas Benes
5ca5fdff9f Use lower-case "windows.h" for case-sensitive file systems
The "windows.h" in MinGW-W64 is lower-case. When cross-compiling for
Windows on Linux with a case-sensitive file system, the upper-case
"Windows.h" file is not found and compilation fails.

Always use lower-case "windows.h" to fix cross-compilation.
2022-09-26 12:42:01 +02:00
Gabi Melman
81de01c02c
Merge pull request #2475 from nigels-com/-fPIC
cmake: set(CMAKE_POSITION_INDEPENDENT_CODE ON)
2022-09-08 01:09:42 +03:00
Gabi Melman
b60512731b
Merge pull request #2476 from nigels-com/SPDLOG_NO_SOURCE_LOC
SPDLOG_NO_SOURCE_LOC support for omitting __FILE__, __LINE__ etc
2022-09-08 01:07:24 +03:00
Nigel Stewart
1eaf98cc10 SPDLOG_NO_SOURCE_LOC implementation refinement 2022-09-03 12:51:31 +10:00
Nigel Stewart
34f88d4382 cmake: SPDLOG_BUILD_PIC opt-in for CMAKE_POSITION_INDEPENDENT_CODE 2022-09-03 12:49:10 +10:00
Nigel Stewart
57e5814364 SPDLOG_NO_SOURCE_LOC support for omitting __FILE__, __LINE__ and SPDLOG_FUNCTION information 2022-09-02 12:18:06 +10:00
Nigel Stewart
de67ebdda1 cmake: set(CMAKE_POSITION_INDEPENDENT_CODE ON) for Linux static library purposes 2022-09-02 12:08:42 +10:00
Gabi Melman
f44fa31f51
Fix #2434 2022-08-17 17:47:22 +03:00
Gabi Melman
64e0724bd6
Merge pull request #2468 from LorenDB/patch-1
Add openSUSE installation
2022-08-12 20:27:02 +03:00
Loren Burkholder
afb1699e0a
Add openSUSE installation 2022-08-12 11:39:47 -04:00