1
0
mirror of https://github.com/gabime/spdlog.git synced 2025-05-04 21:53:52 +00:00

40 Commits

Author SHA1 Message Date
Gabi Melman
63d1884215
Gabime/async flush (#3235)
* Revert "Ensure flush callback gets called in move-assign operator (#3232)"

This reverts commit b6da59447f165ad70a4e3ca1c575b14ea66d92c9.

* Revert "Exchange promise for condition_variable when flushing (fixes #3221) (#3228)"

This reverts commit 16e0d2e77c9b8c741b0b23d9def2db04de6b1b41.

* Revert PR #3049
2024-11-01 11:26:03 +02:00
Michael de Lang
16e0d2e77c
Exchange promise for condition_variable when flushing (fixes #3221) (#3228)
std::promise and std::future use std::call_once under the hood, which requires
the tls-model to be at least initial_exec, excluding local_exec.

Furthermore, gcc has a bug regarding exceptions in std::call_once that
is best avoided. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66146
for more info.

Signed-off-by: Michael de Lang <kingoipo@gmail.com>
2024-10-28 22:38:01 +02:00
Yubin
6725584e27
Make async_logger::flush() synchronous and wait for the flush to complete (#3049) 2024-03-23 15:52:32 +02:00
gabime
9d52261185 clang format 2023-09-25 16:08:29 +03:00
gabime
1a0bfc7a89 clang format 2023-09-25 02:44:07 +03:00
Gabi Melman
b9cb721b92
Update async_logger-inl.h 2023-09-22 02:42:37 +03:00
Gabi Melman
1d6dbc2a56
Fix code formatting of async_logger-inl.h 2023-09-22 02:42:00 +03:00
gabime
1f61f5e019 clang format 2023-06-07 13:23:44 +03:00
gabime
1fba68bfe2 Catch exceptions from async logger. Fix #2618 2023-05-27 15:33:02 +03:00
Wolfgang Petroschka
ed27592537 Switch additional information to source location of bad log message 2021-08-17 15:26:59 +02:00
Wolfgang Petroschka
df45d78d14 Windows/wchar problems
Mixing char types in libfmt is a problem and WIP.
2021-08-13 13:53:35 +02:00
Wolfgang Petroschka
c98b29aa67 Fix empty additional info, 2nd try
There's actually a diffent string view type for wide string...
2021-08-13 12:49:02 +02:00
Wolfgang Petroschka
388679b00e Fix empty additional info
does not work with wchar_t based string.
2021-08-13 12:30:49 +02:00
Wolfgang Petroschka
119467c580 Added additional information for error handler
Useful when formatting log messages fails. Now you can tell which log message caused the problem.
2021-08-13 12:11:59 +02:00
gabime
e7e8b75a4c clang-format 2021-07-19 00:50:51 +03:00
Gabi Melman
3b87eb3d08 Moved throw to dedicated function throw_spdlog_ex 2020-03-21 23:25:12 +02:00
Cristian Morales Vega
7cdd65075c "#include" <spdlog/.*> instead of "spdlog/.*"
The meaning of using quotes to #include is implementation defined, so it
may or not may be what we want. At least POSIX
(https://pubs.opengroup.org/onlinepubs/9699919799/utilities/c99.html)
says: "headers whose names are enclosed in double-quotes ( "" ) shall be
searched for first in the directory of the file with the #include line",
so not what we want since "spdlog" ends up twice in the path.
2019-11-06 19:15:29 +00:00
gabime
ed8d099607 Fixed #1197 2019-08-29 01:05:23 +03:00
gabime
c97c025adb clang-format 2019-08-27 20:22:07 +03:00
gabime
d1b97c0ba9 Updated async_logger include 2019-08-27 02:16:29 +03:00
gabime
755ce0a016 Updated async_logger flush 2019-08-27 02:15:08 +03:00
gabime
408a162044 Removed logger::clone() from API 2019-08-27 01:16:57 +03:00
gabime
04a8485b17 Replaced backtace implementation 2019-08-26 19:59:16 +03:00
gabime
97dc27b5fa minor code formatting 2019-08-26 01:16:53 +03:00
gabime
1fd43fe673 Fixed async_logger::clone 2019-08-26 01:11:22 +03:00
gabime
292fc153ef clang-format 2019-08-26 00:55:14 +03:00
gabime
6b7f3db28e Fixed async sink_it 2019-08-26 00:23:09 +03:00
gabime
eec6e28b19 Async logger cleanup 2019-08-26 00:13:43 +03:00
gabime
f3e379cf78 Fixed async dump_backtrace 2019-08-25 23:55:35 +03:00
gabime
0284a23d0a Changed sink_it_ to accept const log_message& 2019-08-22 19:57:59 +03:00
gabime
0335e3fcc0 Print error and abort instead of throw if SPDLOG_NO_EXEPTIONS is defined 2019-08-19 11:31:33 +03:00
gabime
b0a25f0183 wip - no-exceptions support 2019-08-18 19:46:28 +03:00
gabime
11472eddbc Catch sink exceptions without affecting other sinks 2019-07-17 16:01:30 +03:00
k0zmo
789fb1e7c9 Move templated constructor definition to header file 2019-07-13 10:54:22 +02:00
Mark Koester
a9e92d6c5c
Fix warning: redundant move in return statement 2019-06-21 15:24:52 -04:00
gabime
bcfa9241b8 Updated copyright headers 2019-06-04 00:09:16 +03:00
gabime
ce637440bb wip static-lib 2019-05-13 00:09:00 +03:00
gabime
6bcb422c80 clang format and SPLDOG_HEADER_ONLY macro 2019-05-12 00:22:39 +03:00
gabime
46ef71e3ec Normalized copyright message 2019-05-11 20:06:17 +03:00
gabime
9564eb2edb Moved cpp files to inl.h 2019-05-11 13:19:53 +03:00