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
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
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
Gabi Melman
b75edfafca
Merge pull request #2449 from Simon-Janos/Re-introduce-redundant-std-move-at-return-for-old-compilers
...
Re-introduce std::move at return for old GCC (before version 5) inside an ifdef for e.g. CentOS 7
2022-07-27 10:10:54 +03:00
Simon-Janos
26f69ee9d2
Re-introduce redundant std::move at return for old GCC (before version 5) inside an ifdef for e.g. CentOS 7
2022-07-27 07:16:36 +02:00
Gabi Melman
61879237e9
Merge pull request #2445 from Hish15/Hish15/CorrectDoc
2022-07-25 21:42:31 +03:00
Hector PHARAM
fb3ddf749d
Removed doc "(shared not supported in windows yet)"
2022-07-25 15:23:07 +02:00
Gabi Melman
7d805c2231
Merge pull request #2443 from ibmibmibm/v1.x
...
Explicitly casting level_enum to size_t.
2022-07-22 18:52:02 +03:00
Shen-Ta Hsieh
5f8877b665
Explicitly casting level_enum to size_t.
...
See commit 2a4c34b878
2022-07-21 20:24:01 +08:00
Gabi Melman
834840636c
Merge pull request #2439 from LucasChollet/duration
...
Expend support for any std::chrono::duration in spdlog::flush_every
2022-07-17 22:07:06 +03:00
Lucas CHOLLET
dfe1009080
Expend support for any std::chrono::duration in spdlog::flush_every
...
This allows things like:
spdlog::flush_every(std::chrono::minutes(10));
spdlog::flush_every(std::chrono::milliseconds(100));
2022-07-17 20:28:39 +02:00
Gabi Melman
6c95f4c816
Fix #2419 by documenting the set_pattern behaviour
2022-07-01 10:53:05 +03:00
Gabi Melman
d7690d8e7e
Merge pull request #2415 from neheb/mingw
...
test_stopwatch: fix on mingw
2022-06-27 01:51:11 +03:00
Rosen Penev
68f42a5b90
test_stopwatch: fix on mingw
...
There are some timing shenanigans with GCC's chrono that make this
unreliable. Add a start/stop and test for that to work around.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-06-25 19:07:36 -07:00
Gabi Melman
ab7b325906
Update README.md
2022-06-24 20:08:47 +03:00
Gabi Melman
a26e174b36
Merge pull request #2402 from cookcocck/fix_cmake_spdlog_use_std_format
...
Set c++20 when SPDLOG_USE_STD_FORMAT option is turned on
2022-06-19 02:24:01 +03:00
Gabi Melman
866fdaa6db
Merge pull request #2399 from bergen4/v1.x
...
add overrun_counter reset function
2022-06-19 02:22:56 +03:00
Gabi Melman
03315853df
Merge pull request #2386 from panzhongxian/v1.x
...
Romove the empty file if no log in first period in hourly logger
2022-06-19 02:22:28 +03:00
cookcocck
ca747c7572
Set c++20 when SPDLOG_USE_STD_FORMAT option is turned on
2022-06-14 11:12:49 +08:00
bergen
1f608a81e8
add overrun reset function
2022-06-09 19:45:40 +08:00
bergen
822f972842
update
2022-06-09 19:39:57 +08:00
Gabi Melman
298a200f69
Merge pull request #2396 from polesapart/v1.x
...
Remove redundant std::move at return
2022-06-02 22:53:54 +03:00
Alexandre Pereira Nunes
beefee7929
Remove redundant std::move at return (triggers -Wredundant-move in Gcc, at least)
2022-06-02 13:18:00 -03:00