Commit Graph

233 Commits (5e88d5fe226984c6864f1523d0003988fd91cbfd)

Author SHA1 Message Date
gabime 1a0bfc7a89 clang format 2 years ago
gabime 1f61f5e019 clang format 2 years ago
Gabi Melman 31cf79a70d
Remov foreward to standard vformat_to 2 years ago
Eli Boyarski 62a4b8ce4e
Fix fmt build (#2744) 2 years ago
Charles Milette 4f80077339
Support compile-time format string checking with std::format (#2544)
* Support compile-time format string checking with std::format

* Fix pre-VS 17.5 compilation

* Fix compilation without wchar_t support

* What am I doing

* Bring back fmt optimization

* Move to_string_view to common.h

* Fix SPDLOG_CONSTEXPR_FUNC emitting duplicate symbol errors when building in C++11

* Also add inline on VS 2013

* Appender doesn't work on wide strings
3 years ago
gabime 4accce5d7b Try again fixing fmt::vformat_to when SPDLOG_WCHAR_TO_UTF8_SUPPORT is defined 3 years ago
gabime 678a79c0be Fixed syntax error from prev commit 3 years ago
gabime fdb1f5926e Fix fmt::vformat_to when SPDLOG_WCHAR_TO_UTF8_SUPPORT is defined 3 years ago
gabime 6c975fa13b Replace fmt::detail::vformat_to(buf,..) with fmt::vformat_to(fmt::appender(buf) 3 years ago
gabime c627c66560 Replace fmt::detail::vformat_to(buf,..) with fmt::vformat_to(fmt::appender(buf) 3 years ago
Gabi Melman 6c95f4c816
Fix #2419 by documenting the set_pattern behaviour 3 years ago
John Armstrong 799802f93b Add FMT_STRING to allow compilation with FMT_ENFORCE_COMPILE_STRING 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
Charles Milette ee00f2e07d
Remove fmt_helper.h include from logger.h 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
gabime dc030ec53c clang-format 4 years ago
Charless Milette 6ff1b83038 Fix usage of std::forward 4 years ago
Charless Milette 44a4517e2b Support C++20 std::format as an alternative to fmtlib 4 years ago
Gabi Melman 29e5930090
Update logger.h 4 years ago
Wolfgang Petroschka 0d10e21c2f Remove inner try catch in SPDLOG_LOGGER_CATCH
The fmt::format call should not throw formatting the exception message and the source code location.
4 years ago
Wolfgang Petroschka ed27592537 Switch additional information to source location of bad log message 4 years ago
Wolfgang Petroschka df45d78d14 Windows/wchar problems
Mixing char types in libfmt is a problem and WIP.
4 years ago
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.
4 years ago
dkavolis e471ec884e remove conditional `is_convertible_*` structs for wide chars 4 years ago
dkavolis cb35191fc1 clang is acting weird with disabled constructors 4 years ago
Stephane Janel aecdfc60a0 Fix comment and clang-format 4 years ago
gabime 9049f9aeb9 Fix ambiguous error in clang13 and c++20 4 years ago
dkavolis d8f13cbd5b replace FormatString template argument with fmt::basic_format_string 4 years ago
dkavolis 1344d44a5a check args on formatting 4 years ago
gabime db1bc035f7 clang-format 4 years ago
gabime fe1a4f5fb6 Added SPDLOG_FMT_RUNTIME macro for compatibilty with fmt prior 8 4 years ago
gabime 9c90fe8264 Fixed wchar support 4 years ago
Gabi Melman 5ba95f6816
Update logger.h 4 years ago
Gabi Melman dc38b7c3c4
Update logger.h 4 years ago
Gabi Melman 6484b03dd9
Update logger.h 4 years ago
gabime 29235d9b4b minor string_view change and comment 4 years ago
gabime e98265a49b cosmetic reorder of logger funcs definitions 4 years ago
gabime e87f69bdb6 Removed check if format string can be converted to fmt::is_compile_string 4 years ago
gabime 8faabb4e3a Fix msvc compile 4 years ago
gabime 2838c2c8a5 use vformat_to instead for format_to for better performance 4 years ago
gabime 70b36aa55d Remove fmt::runtime() wrapper in logger.h 4 years ago
gabime 0f83b33d4f backward compatibility with fmt version < 8 4 years ago
Gabi Melman ffd813435a
fix compile error again with wchar formatting 4 years ago
gabime cdad84aa46 merge 4 years ago
gabime a5f5ff70e0 Fixed clang c++20 compile 4 years ago
Gabi Melman 6811112208
Update logger.h 4 years ago
gabime 7b14a65b2b Fixed format_to deprecated warning by wrapping the buffer with std::back_inserter 4 years ago
gabime e9635c7b2d rethrnow non std exceptions to fix #533 4 years ago