Gabi Melman
e36b69a0ec
Merge pull request #2376 from jengelh/master
...
build: expand SOVERSION to not give false illusion of compatibility
3 years ago
Gabi Melman
0ef5228a77
Merge pull request #2372 from kslattery/v1.x
...
C++14 build fixes for older gcc #2333
3 years ago
Gabi Melman
e05b8542a0
Merge pull request #2375 from kslattery/bugfix/default_file_event_handlers
...
Add default file-event_handler callbacks. #2374
3 years ago
Jan Engelhardt
41efc971ad
build: expand SOVERSION to not give false illusion of compatibility
...
Fixes #2369
3 years ago
Kevin Slattery
d89a1e66d8
Add default file-event_handler callbacks. #2374
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
128cbe5a06
clang-format
3 years ago
gabime
6d587f5181
Use fmt::detail::vformat_to(buf, ...) since it is ~20ns faster than fmt::vformat_to(std::back_inserter(buf),..)
3 years ago
Gabi Melman
9b4b373121
Merge pull request #2365 from conr2d/feature/need_localtime
...
Allow overriding need_localtime for custom formatter
3 years ago
Jeeyong Um
aa7490d187
Set eol to the test for overriding need_localtime
3 years ago
Jeeyong Um
c03c925e29
Copy the value of need_localtime when cloning pattern_formatter
3 years ago
Jeeyong Um
38929f856d
Allow overriding need_localtime for custom formatter
3 years ago
Gabi Melman
bd0198de2d
Merge pull request #2364 from stkw0/v1.x
...
fix clone async test
3 years ago
David Roman
ece96216c4
fix clone async test
...
Fix #2363
3 years ago
Gabi Melman
a9347017db
Merge pull request #2358 from tiolan/topic/android_buffer_v1_x
...
V1: Allow modifying the used Android buffer
3 years ago
Timo Lange
2eedf1fa28
remove usage of forward args
3 years ago
Timo Lange
0a875d7b2d
use __android_log_write or __android_log_buf_write based on template paramter
3 years ago
Gabi Melman
173d06578f
Fixed move in ringnuffer_sink
3 years ago
Gabi Melman
b299855ef2
Merge pull request #2346 from sylveon/v1.x
...
Switch to vformat_to
3 years ago
Charles Milette
8338a48c5b
Remove fmt_helper::to_string
3 years ago
Charles Milette
cd4f6c1466
Replace fmt_helper::to_string by a macro
3 years ago
Charles Milette
37dd6bb159
Address PR review comments
3 years ago
Charles Milette
714cf12822
Add fmt_helper.h include to includes.h and os-inl.h
3 years ago
Charles Milette
ee00f2e07d
Remove fmt_helper.h include from logger.h
3 years ago
Charles Milette
c203b4df8e
Fix conversion from fmt::memory_buffer to fmt::string_view
3 years ago
Charles Milette
56adf64ccf
Actually fix bad #ifdef
3 years ago
Charles Milette
91019f4f46
Fix bad #ifdef
3 years ago
Charles Milette
3cf94968e7
Add missing include
3 years ago
Charles Milette
ebeb3707b1
Switch to vformat_to
...
Drive-by: reduce the amount of occurences of #ifdef SPDLOG_USE_STD_FORMAT
3 years ago
Gabi Melman
b3ce5ed379
Remove comment
3 years ago
Gabi Melman
78fbc69c94
Merge pull request #2336 from aengusjiang/v1.x
...
[issues/2332]clean code, clean up the warning
3 years ago
Gabi Melman
4ccbb5a71a
Merge pull request #2342 from espkk/v1.x
...
Make file_event_handlers an aggregate
3 years ago
espkk
e6265c04ae
Make file_event_handlers an aggregate
3 years ago
Aengus.Jiang
184fae06d7
clean code, clean up the warning
3 years ago
gabime
76fb40d954
clang format
3 years ago
gabime
757e9f8ec6
Bump version to 1.10.0
3 years ago
Gabi Melman
fc51c095ba
Merge pull request #2328 from Delgan/GH-2323-add-systemd-identifier
...
Add optional "ident" argument to systemd sink constructor
3 years ago
Delgan
36b4b9dac9
Add optional "ident" argument to systemd sink constructor
3 years ago
Gabi Melman
083ea59fbd
Merge pull request #2324 from Delgan/GH-2320-add-systemd-formatter
...
Add option to enable formatting of systemd sink
3 years ago
Delgan
c1aeefb0c9
fixup! Add option to enable formatting of systemd sink
...
Add default value to "systemd_sink" contructor
3 years ago
Delgan
3c1ee54112
Add option to enable formatting of systemd sink
3 years ago
Gabi Melman
a49456f7f2
Merge pull request #2317 from risa2000/patch-1
...
Fixed compiler error when building on Windows with #define UNICODE
3 years ago
risa2000
52dc210423
Fixed compiler error when building on Windows with #define UNICODE
...
The original `InetPton` expands to `InetPtonW` when building with UNICODE defined and expects the string parameter to be wchar_t. On the other hand macro `TEXT()` just adds prefix `L` to a string literal (just making it wchar_t literal). The proper way here would be converting `host.c_str()` result from UTF-8(?) into wchar_t (UNICODE) string, but this seems to be an overkill since the host is typically an IP address or a host/domain name. So assuming an ASCII input should be reasonably safe.
3 years ago
Gabi Melman
b1478d98f0
Merge pull request #2305 from nUl1/fix-fopens
...
Fix fopen_s error reporting with PREVENT_CHILD_FD
4 years ago
Andrey Bugaevskiy
5ee969e4f6
Fix fopen_s error reporting with PREVENT_CHILD_FD
4 years ago
Gabi Melman
7f8a61e79d
Merge pull request #2300 from adamcalhoon/fix-fmt-external-ho-deps
...
When built with SPDLOG_FMT_EXTERNAL_HO consumers of the spdlog target…
4 years ago
Adam Calhoon
69cac816aa
When built with SPDLOG_FMT_EXTERNAL_HO consumers of the spdlog targets depend on fmt
...
The cmake/spdlogConfig.cmake.in file properly takes into account the fmt
package dependency when building with SPDLOG_FMT_EXTERNAL:BOOL=ON but
not when built with SPDLOG_FMT_EXTERNAL_HO:BOOL=ON.
Prior to these changes SPDLOG_FMT_EXTERNAL_HO:BOOL=ON results in
exported targets with INTERFACE_LINK_LIBRARIES that contain
fmt::fmt-header-only.
As such, the installed spdlogConfig.cmake file should attempt to find
that dependency for the consumer.
4 years ago
Gabi Melman
2f2d04b3e8
Merge pull request #2278 from adriweb/patch-1
...
pattern_formatter-inl: fix reorder-ctor warning
4 years ago
Adrien Bertrand
9cd9c98f59
pattern_formatter-inl: fix reorder-ctor warning
...
Fix `Wreorder-ctor` warning
```
spdlog/pattern_formatter-inl.h:1028:7: error: field 'custom_handlers_' will be initialized after field 'need_localtime_' [-Werror,-Wreorder-ctor]
, custom_handlers_(std::move(custom_user_flags))
^
```
Move the initialization of `need_localtime_(true)` right after `pattern_time_type_` as expected.
4 years ago