1
0
mirror of https://github.com/gabime/spdlog.git synced 2025-05-08 07:13:52 +00:00

48 Commits

Author SHA1 Message Date
hjs-ast
951c5b9987
Allow manual rotation of rotating_file_sink (#3269)
* Allow manual rotation of rotating_file_sink

* Rename rotation method

* Attempted fix for tests on Windows

* Apply review mark-ups
2024-11-28 17:37:29 +02:00
Alex Overchenko
885b5473e2
Fix building with FMT_ENFORCE_COMPILE_STRING (#3137) 2024-07-16 20:41:21 +03:00
gabime
0a53eafe18 update clang format again 2023-09-25 16:40:36 +03:00
gabime
4b2a8219d5 reformat code 2023-09-25 16:20:42 +03: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
gabime
76fb40d954 clang format 2022-04-04 16:48:58 +03:00
Surfy Cui
a732a0dc85 Limit max number of rotating files to 200000, not max size 2022-02-14 15:30:06 +08:00
Gabi Melman
4c2ce2c82c
Update rotating_file_sink-inl.h 2022-02-13 09:41:15 +02:00
gabime
4cea9b8729 Limit max number of rotating files to 200000. Fix #1905 2022-02-12 14:10:43 +02:00
gabime
c432fdd987 Bump fmt to version 8.1.1 and run clang-format 2022-02-12 13:20:15 +02:00
gabime
0b48976be4 flush before rotating 2022-02-05 19:45:19 +02:00
gabime
5b03dc1796 Throw if rotating_file_sink constructor receives max_size==0 as arg 2022-02-05 17:37:55 +02:00
gabime
ec8b0beddd comment 2022-02-05 17:16:36 +02:00
gabime
7536192058 Fix #2261 2022-02-05 17:13:33 +02:00
Sprite
3540ba32e9 Reset current size if rotated files on open 2022-01-04 09:16:20 +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
gabime
5b7dfefc7e rename file_event_handlers_t to file_event_handlers 2021-11-16 16:41:04 +02: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
Gabi Melman
ddaa61ca9a
Revert changes 2021-08-10 16:53:22 +03:00
Gabi Melman
4646bd082a
Update rotating_file_sink-inl.h 2021-08-10 15:41:03 +03:00
Gabi Melman
53aca9c3d0
C++20 support 2021-08-10 14:17:20 +03:00
Gabi Melman
816ede3a17
Revert e93115f436dcbeaf5dd664053b4dc53af60766f4 because won't compile under mscv 2017 2021-07-27 02:43:54 +03:00
Gabi Melman
e93115f436
Fixed compile under c++20 and clang 12 2021-07-27 01:44:52 +03:00
gabime
e7e8b75a4c clang-format 2021-07-19 00:50:51 +03:00
gabime
d6dbdbf27a Revert 7f15fb2a21cfc7895846a22e5b0f5e4e88040e88 since it breaks the ABI 2020-06-07 14:50:57 +03:00
Tamas Florin
071206ef59 Add support for custom filename calculator in rotating_file_sink. 2020-06-04 13:38:21 +03:00
gabime
e1c79869b6 Replaced more SPDLOG_THROW with throw_spdlog_ex 2020-03-22 01:09:08 +02:00
Gabi Melman
0f42744f5c
Update rotating_file_sink-inl.h 2020-02-12 12:11:03 +02:00
tt4g
0cf1af5bbf Avoid references to race data filename 2020-02-12 16:30:44 +09:00
Gabi Melman
a343328a21
Update rotating_file_sink-inl.h 2020-02-12 08:56:24 +02:00
Gabi Melman
53a56b82af
Update rotating_file_sink-inl.h 2020-02-12 07:51:42 +02:00
Gabi Melman
64dd4dc219
Update rotating_file_sink-inl.h 2020-02-12 07:49:29 +02:00
tt4g
0778211116 Add critical section to filename function of each file sink 2020-02-12 11:01:35 +09: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
dbe5c17a96 Renamed file_exists()->path_exists() 2019-10-25 15:56:23 +03:00
gabime
5c2855e1c1 wip backtracer 2019-09-05 01:25:00 +03:00
gabime
2af5eea2c6 SImplify filename creation in rotating sink 2019-09-02 12:35:33 +03:00
gabime
f5492aed12 Unified usage of fmt::memory_buffer across the codebase 2019-08-28 18:46:09 +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
29f2eeea31 Removed formatter_ member from the sink interface 2019-06-27 23:56:37 +03: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
09e83937de wip static-lib 2019-05-12 02:10:39 +03:00
gabime
42e30468a9 added rotating_file_sink to static build 2019-05-12 01:43:30 +03:00