gabime
070dd181df
clang format
2022-10-31 17:09:45 +02:00
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));
2022-07-17 20:28:39 +02:00
bergen
1f608a81e8
add overrun reset function
2022-06-09 19:45:40 +08:00
bergen
822f972842
update
2022-06-09 19:39:57 +08:00
panzhongxian
1f0c2f9f36
Remove try_lock from null_mutex.
2022-05-20 16:20:19 +08:00
John Armstrong
799802f93b
Add FMT_STRING to allow compilation with FMT_ENFORCE_COMPILE_STRING
2022-05-19 11:32:54 -07:00
Charles Milette
8338a48c5b
Remove fmt_helper::to_string
2022-04-26 23:27:55 -04:00
Charles Milette
cd4f6c1466
Replace fmt_helper::to_string by a macro
2022-04-26 23:25:35 -04:00
Charles Milette
37dd6bb159
Address PR review comments
2022-04-25 21:59:56 -04:00
Charles Milette
714cf12822
Add fmt_helper.h include to includes.h and os-inl.h
2022-04-22 23:28:28 -04:00
Charles Milette
ebeb3707b1
Switch to vformat_to
...
Drive-by: reduce the amount of occurences of #ifdef SPDLOG_USE_STD_FORMAT
2022-04-21 21:59:02 -04:00
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.
2022-03-22 16:20:45 +01:00
Andrey Bugaevskiy
5ee969e4f6
Fix fopen_s error reporting with PREVENT_CHILD_FD
2022-03-11 19:22:45 +00:00
gabime
c432fdd987
Bump fmt to version 8.1.1 and run clang-format
2022-02-12 13:20:15 +02:00
gabime
5afff7821f
throw if flush failed
2022-02-05 14:23:33 +02:00
Vladislav Nepogodin
f096c615c3
🔥 conditional_cast
2021-12-19 21:37:21 +04:00
Vladislav Nepogodin
f81cb9f365
Revert "Useless cast"
...
This reverts commit 7e95963940 .
2021-12-19 21:05:21 +04:00
Vladislav Nepogodin
7e95963940
Useless cast
2021-12-19 15:04:47 +04:00
Gabi Melman
ab2e72340a
Update thread_pool.h
2021-12-11 16:36:40 +02:00
Gabi Melman
da9c16278a
Update thread_pool.h
2021-12-11 16:36:30 +02:00
Gabi Melman
b5d6c939fd
Update thread_pool.h
2021-12-11 16:36:20 +02:00
Philippe Serreault
6636ff05e6
Allow custom callback to be executed by thread-pool's threads before joining them.
...
This is similar to a change that was made a while ago ( https://github.com/gabime/spdlog/pull/208 ).
2021-12-11 16:34:48 +02:00
Acretock
9e17fafe1b
c style cast -> static_cast
2021-12-11 16:29:10 +02:00
semenov_gv
e3e4c4bc95
minor changes added const ref params
2021-12-11 16:09:19 +02:00
lisr
232df72b82
use pthread_getthrds_np for AIX
2021-11-20 09:48:14 +08:00
lisr
aac187d3a0
fix aix compile error
2021-11-19 10:55:43 +08:00
gabime
dc030ec53c
clang-format
2021-11-16 23:44:35 +02:00
Charles Milette
126a9fb261
Merge branch 'v1.x' of https://github.com/gabime/spdlog into std-format
2021-11-16 11:30:23 -05:00
Charles Milette
4001032858
Add attribution, return to previous code for daily_filename_format_calculator with fmtlib
2021-11-16 11:22:30 -05:00
Charles Milette
701ef17227
Move strftime to daily_filename_format_calculator
2021-11-16 10:05:35 -05:00
Charles Milette
5d6af189f1
Use target.capacity() even with std::string
2021-11-16 09:59:48 -05:00
gabime
5b7dfefc7e
rename file_event_handlers_t to file_event_handlers
2021-11-16 16:41:04 +02:00
Charless Milette
2d77ef92b0
Avoid specializing std::formatter for std::tm (not a great idea after all)
2021-11-15 15:27:34 -05:00
Gabi Melman
a3ad8b5f26
Merge pull request #2169 from seker/v1.x_file_event_handlers
...
file_event_handlers add before_open function
2021-11-15 13:36:03 +02:00
seker
24a551c14e
file_event_handlers add before_open function
2021-11-15 19:14:35 +08:00
Charles Milette
8e359baaec
Merge branch 'v1.x' into std-format
2021-11-14 16:02:38 -05:00
Gabi Melman
85bdfc8695
Merge pull request #2172 from keith-dev/v1.x
...
example.cpp failes to build on FreeBSD
2021-11-14 09:53:29 +02:00
Keith Williams
c8ba643f53
example.cpp failes to build on FreeBSD
2021-11-14 06:44:47 +00:00
Dimitris Apostolou
591eedcf36
Fix typos
2021-11-13 21:54:08 +02:00
Charless Milette
48e35f9c3e
Make clang happy, fix VS 2022 generator name
2021-11-13 12:08:01 -05:00
Charless Milette
89c4b1aabe
Fix build issues under C++11
2021-11-13 12:02:40 -05:00
Charless Milette
44a4517e2b
Support C++20 std::format as an alternative to fmtlib
2021-11-13 11:29:05 -05:00
seker
c47ae3b15d
add file event handlers
2021-11-12 09:49:49 +08:00
Маркелов Максим
14eecc6e2a
Unhandled errors
...
inet_aton(), InetPton() return codes
2021-09-07 09:10:25 +03:00
gabime
bae78f7b6c
Fixed comments
2021-09-05 17:29:47 +03:00
gabime
f97dcc72dc
cleanup tcp client WSA Startup/Shutdown
2021-09-05 17:28:46 +03:00
gabime
c0d10efabf
Cleanup unix udp client
2021-09-05 16:35:11 +03:00
gabime
9bb66c00e9
Cleanup windows udp client
2021-09-05 16:18:14 +03:00
Chris Love
2e66a27081
Remove is_init() check on each log call
2021-09-04 19:29:56 -07:00
Chris Love
497fa60f57
Explicitly set SO_SNDBUF size to fix drops on Windows and address other PR feedback
2021-09-04 13:18:06 -07:00