Commit Graph

72 Commits

Author SHA1 Message Date
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
gabime
dc030ec53c clang-format 2021-11-16 23:44:35 +02: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
Charless Milette
2d77ef92b0 Avoid specializing std::formatter for std::tm (not a great idea after all) 2021-11-15 15:27:34 -05: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
Gabi Melman
197c9639bb
Fixed compile under c++20 and clang 12 2021-07-27 01:37:15 +03:00
gabime
7b14a65b2b Fixed format_to deprecated warning by wrapping the buffer with std::back_inserter 2021-06-24 17:07:14 +03:00
gabime
cd701761f9 clang-format 2020-08-26 00:10:05 +03:00
Craig Andrews
22bee8128a fmt 7.0.0 renamed the internal namespace to detail.
See: https://github.com/fmtlib/fmt/issues/1538
2020-07-06 13:01:52 -04:00
gabime
8bc1ca0e44 clang-format 2020-04-12 02:21:48 +03:00
gabime
7766bc25d1 Updated fmt_helper::pad2() 2020-04-12 01:40:22 +03:00
gabime
619849c793 fixed comment 2020-04-11 20:15:04 +03:00
gabime
927b2b3942 Fixed conversion warnings 2020-04-11 20:07:40 +03:00
gabime
76389e057f Optimize fmt_helper::pad3() 2020-04-11 19:50:19 +03:00
gabime
a8169a3d6b clang-format 2020-04-10 15:35:58 +03:00
gabime
490940cd53 Minor update to fmt_helper 2020-04-04 20:11:59 +03:00
gabime
92d27b0aa3 Minor update to fmt_helper 2020-04-04 20:11:17 +03:00
gabime
ca9c83f824 Minor improvment to number padding 2020-04-04 20:06:04 +03:00
gabime
f0c35819bd Removed unneeded nullptr check 2020-03-22 02:17:48 +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
d89baf4c5b Fixed tidy warning 2019-08-28 19:00:35 +03:00
gabime
f5492aed12 Unified usage of fmt::memory_buffer across the codebase 2019-08-28 18:46:09 +03:00
gabime
db103ff340 Replaced passing time by val istead of ref in helper 2019-07-10 01:42:43 +03:00
gabime
bcfa9241b8 Updated copyright headers 2019-06-04 00:09:16 +03:00
gabime
46ef71e3ec Normalized copyright message 2019-05-11 20:06:17 +03:00
gabime
e2e3df9013 static lib wip 2019-04-05 16:44:17 +03:00
gabime
452ba76507 Fixed conversion warnings 2019-01-08 17:31:46 +02:00
Gabi Melman
b492642282
Update fmt_helper.h 2018-11-27 11:37:09 +02:00
gabime
4ba19821ce Fixed compilation for vs2013 2018-11-25 10:54:06 +02:00
Daniel Chabrowski
e751461ff1 Fix template error 2018-11-19 18:59:17 +01:00
Daniel Chabrowski
6232ec78f7 Change count_digits to depend on template param, not size_t 2018-11-19 18:34:52 +01:00
Daniel Chabrowski
f09d0f2301 Add helper for count_digits 2018-11-19 18:12:50 +01:00
Daniel Chabrowski
14a071c478 Fix osx build 2018-11-19 02:54:02 +01:00
gabime
7068c45115 Fixed issue #908 2018-11-16 13:28:34 +02:00
gabime
552416bda4 fmt_helper cleanup 2018-11-16 12:55:19 +02:00
gabime
4a34cd0662 Optimized nano seconds formatting 2018-11-12 16:44:34 +02:00
Jerome Meyer
1b391ccd06 Cleanup header file: remove log_msg.h include from fmt_helper.h 2018-10-29 09:55:41 -04:00
gabime
392d126372 Renamed string_view_type -> string_view_t 2018-10-21 23:50:07 +03:00
gabime
894438d5fb Better support for string_view 2018-10-21 12:46:58 +03:00
gabime
4e3e80109a Code formatting 2018-10-19 17:12:35 +03:00
gabime
c2a9bf9974 Small refactoring and support wchar again 2018-10-19 16:48:22 +03:00
gabime
a5a39c52b0 Added nullptr check to append_string_view 2018-10-19 02:45:35 +03:00
gabime
6355e9895d Major change to log_msg - contain only string_view instead of buffer 2018-10-19 02:15:50 +03:00
Jerome Meyer
cb71fea0f6 Use fmt::string_view when logging a C string to avoid unnecessary copy 2018-10-18 11:04:20 -04:00
gabime
0876e39c4f pad3 small optimization 2018-09-28 01:27:37 +03:00
gabime
0879dea444 Fixed clang-tidy warning 2018-09-27 00:39:17 +03:00
gabime
5d7845c138 Added "clone()" support to loggers 2018-08-25 17:55:31 +03:00