Sandor Magyar
b5d361fc21
clang-format mongo_sink.h
3 years ago
Sandor Magyar
0674e79066
Improve arg passing and exceptions in mongo_sink
3 years ago
Sandor Magyar
5f67ef4d6f
Remove pointless try block in mongo_sink
3 years ago
Sandor Magyar
1bb1f05d73
Adjust MongoCXX instance handling in mongo_sink
...
Changes suggested by @gabime on #2519
3 years ago
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.
3 years ago
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.
3 years ago
Sandor Magyar
f3b61c70ba
Catch exception by reference to fix -Wcatch-value warning
3 years ago
Gabi Melman
d011332616
Merge pull request #2509 from kin4stat/v1.x
...
Replace iterator difference with std::distance(revert #2030 )
3 years ago
Daniil
93b9132b0a
Replace iterator difference with std::distance
3 years ago
Gabi Melman
936697e5b1
Merge pull request #2500 from offa/ghactions_ci
...
Migrate to Github Actions CI
3 years ago
offa
cf6cdc5ba6
Replace Travis CI Badge with Github Actions
3 years ago
offa
ec81b321c2
Remove .travis.yml
3 years ago
offa
23fce5ffaa
Migrate to Github Actions CI
3 years ago
Gabi Melman
7fa59cf555
Merge pull request #2498 from offa/gcc12_workaround
...
Workaround GCC 12 warning
3 years ago
offa
29b24f9e72
Use pragams instead of compile options
3 years ago
Gabi Melman
523a075f82
Merge pull request #2499 from offa/clang_cpp20_workaround
...
Workaround deprecation warning on Clang with C++20
3 years ago
offa
06f9953fa8
Workaround deprecation warning on Clang with C++20
3 years ago
offa
b8fdc9bf5d
Workaround GCC 12 warning
3 years ago
Gabi Melman
7130676697
Merge pull request #2495 from panicgh/lowercase-windows-h
...
Use lower-case "windows.h" for case-sensitive file systems
3 years ago
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.
3 years ago
Gabi Melman
81de01c02c
Merge pull request #2475 from nigels-com/-fPIC
...
cmake: set(CMAKE_POSITION_INDEPENDENT_CODE ON)
3 years ago
Gabi Melman
b60512731b
Merge pull request #2476 from nigels-com/SPDLOG_NO_SOURCE_LOC
...
SPDLOG_NO_SOURCE_LOC support for omitting __FILE__, __LINE__ etc
3 years ago
Nigel Stewart
1eaf98cc10
SPDLOG_NO_SOURCE_LOC implementation refinement
3 years ago
Nigel Stewart
34f88d4382
cmake: SPDLOG_BUILD_PIC opt-in for CMAKE_POSITION_INDEPENDENT_CODE
3 years ago
Nigel Stewart
57e5814364
SPDLOG_NO_SOURCE_LOC support for omitting __FILE__, __LINE__ and SPDLOG_FUNCTION information
3 years ago
Nigel Stewart
de67ebdda1
cmake: set(CMAKE_POSITION_INDEPENDENT_CODE ON) for Linux static library purposes
3 years ago
Gabi Melman
f44fa31f51
Fix #2434
3 years ago
Gabi Melman
64e0724bd6
Merge pull request #2468 from LorenDB/patch-1
...
Add openSUSE installation
3 years ago
Loren Burkholder
afb1699e0a
Add openSUSE installation
3 years ago
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
3 years ago
Simon-Janos
26f69ee9d2
Re-introduce redundant std::move at return for old GCC (before version 5) inside an ifdef for e.g. CentOS 7
3 years ago
Gabi Melman
61879237e9
Merge pull request #2445 from Hish15/Hish15/CorrectDoc
3 years ago
Hector PHARAM
fb3ddf749d
Removed doc "(shared not supported in windows yet)"
3 years ago
Gabi Melman
7d805c2231
Merge pull request #2443 from ibmibmibm/v1.x
...
Explicitly casting level_enum to size_t.
3 years ago
Shen-Ta Hsieh
5f8877b665
Explicitly casting level_enum to size_t.
...
See commit 2a4c34b878
3 years ago
Gabi Melman
834840636c
Merge pull request #2439 from LucasChollet/duration
...
Expend support for any std::chrono::duration in spdlog::flush_every
3 years ago
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));
3 years ago
Gabi Melman
6c95f4c816
Fix #2419 by documenting the set_pattern behaviour
3 years ago
Gabi Melman
d7690d8e7e
Merge pull request #2415 from neheb/mingw
...
test_stopwatch: fix on mingw
3 years ago
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>
3 years ago
Gabi Melman
ab7b325906
Update README.md
3 years ago
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
3 years ago
Gabi Melman
866fdaa6db
Merge pull request #2399 from bergen4/v1.x
...
add overrun_counter reset function
3 years ago
Gabi Melman
03315853df
Merge pull request #2386 from panzhongxian/v1.x
...
Romove the empty file if no log in first period in hourly logger
3 years ago
cookcocck
ca747c7572
Set c++20 when SPDLOG_USE_STD_FORMAT option is turned on
3 years ago
bergen
1f608a81e8
add overrun reset function
3 years ago
bergen
822f972842
update
3 years ago
Gabi Melman
298a200f69
Merge pull request #2396 from polesapart/v1.x
...
Remove redundant std::move at return
3 years ago
Alexandre Pereira Nunes
beefee7929
Remove redundant std::move at return (triggers -Wredundant-move in Gcc, at least)
3 years ago
panzhongxian
1eafcfab70
Romove the empty file if no log in first period in hourly logger
3 years ago