Commit Graph

4268 Commits (47b7e7c736fbf58e2e62d18f18b72209641f0c32)
 

Author SHA1 Message Date
Dimitri Papadopoulos Orfanos 47b7e7c736
Fix typos found by codespell (#3011) 2 years ago
Enzo Gaban 696db97f67
docs: details about how compile time macros work (#2981) 2 years ago
liubing 8979f7fb2a
Also use _stat() on Windows to be more UTF8 friendly (#2978)
* Also use _stat() on Windows to be more UTF8 friendly

* Cosmetic changes
2 years ago
gabime 7c02e204c9 Bump version to 1.13.0 2 years ago
gabime 2aa8b6c971 Check fd_ is not nullptr in file_helper 2 years ago
Jeff 7cb90d1ab2
Fix MSVC compile flag for no exceptions (#2974) 2 years ago
Gabi Melman 1ef8d3ce34
Fix #2967 2 years ago
gabime c1569a3d29 Bump to catch2 v3.5.0 2 years 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
Gabi Melman ac55e60488
Update README.md 2 years ago
Marcus Müller ddce42155e
fmt/*.h: include tweakme.h to set SPDLOG_FMT_EXTERNAL according to system (#2923)
Signed-off-by: Marcus Müller <marcus@hostalia.de>
2 years ago
M010 8b331e2cd1
Fix wrong thread_id (TID) in systemd_sink.h (#2919) 2 years ago
shannonbooth 2d5179ba7d
sinks: Make syslog_sink.h's syslog_prio_from_level protected (#2918)
To allow for using this function from a derived sink.
2 years ago
gabime ff205fd29a Updated logo 2 years ago
gabime 595a524758 Updated spdlog logo 2 years ago
gabime c5452e0508 Updated spdlog logo 2 years ago
Keith Kraus 0c4fb032e4
Match SPDLOG_CONSTEXPR_FUNC to FMT_CONSTEXPR (#2901)
* Modify the condition of SPDLOG_CONSTEXPR_FUNC to match that of fmt
2 years ago
Peter Nemeth 508d20f0fa
Add .git-blame-ignore-revs to ignore clang-format related commits (#2899) 2 years ago
Peter Nemeth 479a5ac3f1
Fix OS availability check of pthread_threadid_np for iOS (#2897) 2 years ago
Gabi Melman 91807c2e71
Update README.md 2 years ago
Gabi Melman d4a5fd564c
Update README.md 2 years ago
gabime e5865186d4 Revert "Added a function to add callbacks that are called when a logger is registered (#2883)"
This reverts commit b6eeb7364c, since it causes deadlocks too easily for the users.
2 years ago
Jonathan Vannier b6eeb7364c
Added a function to add callbacks that are called when a logger is registered (#2883)
* Added a function to add callbacks that are called when a logger is registered

* Fix non captured registration 2 not being properly tested for

* Replace std::list by std::vector

* Remove const refs to shared pointers

* Fix missing header
2 years ago
gabime 0a53eafe18 update clang format again 2 years ago
gabime 251c856a12 update clang format again 2 years ago
gabime 4b2a8219d5 reformat code 2 years ago
gabime cafde8ccc1 updated clang format 2 years ago
gabime 9d52261185 clang format 2 years ago
gabime 230e15f499 updated format.sh 2 years ago
gabime 7f535d184e updated .clang-format 2 years ago
gabime 95c226e9c9 format 2 years ago
gabime 5e88d5fe22 Never sort includes in clang format 2 years ago
Gabi Melman 5931a3d6f8 Fixed windows compile 2 years ago
Gabi Melman f4afd81ce6
Update common.h 2 years ago
gabime 1a0bfc7a89 clang format 2 years ago
gabime f24f7fa2fa Added missing include mutex 2 years ago
gabime 65701f4d5b Updated format.sh script 2 years ago
gabime 9e36a15875 Updated clang format to google style 2 years ago
Gabi Melman b9cb721b92
Update async_logger-inl.h 2 years ago
Gabi Melman 1d6dbc2a56
Fix code formatting of async_logger-inl.h 2 years ago
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.
2 years ago
gabime d109e1dcd0 minor cleanup 2 years ago
gabime a98d3ab0c7 clang format 2 years ago
neothenil 8014d6c31a
Fix encoding issue in qt_sinks (#2862)
Added support for utf8 in qt_color_sink
2 years ago
gabime 3aceda041b Fixed bench 2 years ago
gabime 7d0531b076 Removed policy_max from cmake_minimum_required(..) 2 years ago
Gabi Melman 47e04cf043
Update ci.yml 2 years ago
albert-github 81ce5fcdb7
Remove obsolete part from cmake configuration files (#2871)
Updating minimum CMake version to 3.11
2 years ago
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...
 }
```
2 years ago
Robert Maynard 2312489bdc
Provide spdlog_header_only in build directory export (#2846)
Fixes #2678
2 years ago