Commit Graph

505 Commits (3f508d9e5ca1ad3cb6adb67e5fa09e93c277ff3e)

Author SHA1 Message Date
Gabi Melman 37ff466454
Add coverity scan to CI and fix warnings (#3400)
* Move callback function in thread_pool ctor

* Added const qualifiers to logger.h

* Remove unused includes from file_helper-inl.h

* Fix comments and remove unused include from helpers-inl.h

* Fix typo in comment for set_default_logger method.

* Use `std::move` for `old_logger` in `set_default_logger`.

* Use std::move in example

* Wrap `main` content in try block for exception safety.

* Added coverity to ci
4 months ago
Gabi Melman 7e022c4300
Feature 3379 (#3397)
* Fix #3379

* clang format
4 months ago
Ken Matsui ae1de0dc8c
Support custom environment variables for load_env_levels (#3327)
SPDLOG_LEVEL is currently supported to control log levels via
load_env_levels.

This patch adds support for other environment variable names, such as
MYAPP_LEVEL, for load_env_levels.
7 months ago
LiAuTraver 1245bf8e8a
add explicit mt:: and std:: to avoid ambiguous call when both std::format_to and mt::format_to are present (#3259) 9 months ago
hydai e593f6695c
Fix warning - extra ';' for -Wextra-semi (#3198)
Signed-off-by: hydai <z54981220@gmail.com>
11 months ago
allen_qfl 362214a349
fix/issue-3101: fix the issue where mdc ignores SPDLOG_NO_TLS (#3184)
Co-authored-by: dyf <yufeng.duan@senscape.com.cn>
12 months ago
Ziyao d276069a6e
make example compatible with fmt 11 (#3130)
Since fmt 11.0.0, formatter::format() is required to be const. Mark
format() method in example as const to stay compatible with fmt 11.
1 year ago
gabime 2d4acf8cc3 Added mdc example 1 year ago
Harris ba508057b1
Update example.cpp to fix the vector issue in bin_example (#2963)
with std::vector<char> buf(80),  80 elements are put in the vector, which is not the expected behavior.
2 years ago
gabime 0a53eafe18 update clang format again 2 years ago
gabime 9d52261185 clang format 2 years ago
gabime a98d3ab0c7 clang format 2 years ago
albert-github 81ce5fcdb7
Remove obsolete part from cmake configuration files (#2871)
Updating minimum CMake version to 3.11
2 years ago
gabime 7e635fca68 Fixed #2724 by excluding bin_to_hex sink if using std::format 2 years ago
gabime 1f61f5e019 clang format 2 years ago
Bailey Chittle 069a2e8fc9
fix small issue when compiling with C++20 without std::format (#2688) 2 years ago
Zeus James da14258533
Fix MinGW build issue on example (#2642)
* Fix MinGW build issue on example #2638

* Move the cmake change to example\CMakeLists.txt

* Update CMakeLists.txt on the example
3 years ago
Mohammad Ali 3cab260814
Add a trivial callback sink (#2610)
Add a trivial callback sink
3 years ago
gabime a7e2bf161e Update user defined type example 3 years ago
gabime 070dd181df clang format 3 years ago
Kevin Slattery d3dee23e6c Remove new macro, update example with correct way to specify fmt lib namespace when fmt_lib namespace alias cannot be used. 3 years ago
Kevin Slattery 5f5e70e96e C++14 build fixes for older gcc #2333 3 years ago
gabime 71105e0b07 Fixed #2227 4 years ago
gabime c432fdd987 Bump fmt to version 8.1.1 and run clang-format 4 years ago
Gabi Melman e45c11f98a
Update example.cpp 4 years ago
Gabi Melman c211288576
Update example.cpp 4 years ago
Gabi Melman 4fefd51e08
Fixed custom type example to work in c++11 4 years ago
gabime f81970191a Fixed example for custom_type 4 years ago
gabime b8b16e49a5 Fixed example for custom_type 4 years ago
gabime 2c21d9ecf8 Fixed example for custom_type 4 years ago
gabime 2a45eff693 Fixed example for custom_type 4 years ago
gabime 5bf8728cfa Fixed example for std_format 4 years ago
Roocks Patrick (MTN PTT / External) d93cea97ec Fix usage of ranges and to_hex in the same compile unit
When trying to use spdlog/fmt/bin_to_hex.h in the same compile unit as spdlog/fmt/bundled/ranges.h you got a compile error because there was a multiple definitions for iterable classes. This fix renames the begin() and end() getters in dump_info into getBegin()/getEnd() in order to avoid this collision.

Added an example of ranges in example.cpp to show that it actually works (an to_hex example was already there)
4 years ago
Sean Farrell f52d526e1e Add example to replace default logger.
Close #2193
4 years ago
gabime dc030ec53c clang-format 4 years ago
Gabi Melman 10b640d773
Update example.cpp 4 years ago
gabime 5b7dfefc7e rename file_event_handlers_t to file_event_handlers 4 years ago
gabime 698516f3f5 Updated example 4 years ago
gabime b813bb863d Updated file_events example 4 years ago
gabime 30fb78813b Updated file events example 4 years ago
seker 24a551c14e file_event_handlers add before_open function 4 years ago
seker c47ae3b15d add file event handlers 4 years ago
gabime 1ec50cdcfc update udp example 4 years ago
Chris Love 444df2b287 Address PR comments 4 years ago
Chris Love 8ee1c167b9 Don't use std::chrono_literals 4 years ago
Chris Love 486dc5102e Winsock support 4 years ago
Chris Love 4501f21ae7 Fix example 4 years ago
Chris Love 649424b8ea Fix IP address of udp sink example 4 years ago
Chris Love a15f5137ef Fix udp sink on Windows 4 years ago
Chris Love c5fd8a0b97 Port code from prior PR (#1746), code cleanups 4 years ago