Commit Graph

208 Commits (12ee35a3d1db881bbd30ce64b0591e80ce6fa103)

Author SHA1 Message Date
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
dkavolis 23572369fc Perfect forwarding for arguments 5 years ago
gabime 231ca50700 clang-format 5 years ago
gabime e69699e12c enable_if 5 years ago
gabime b0c4794305 Use default pointer type in enable_if 5 years ago
Joe Burzinski 741b0d6e82 Address code review comments: remove perfect forwarding on FormatString template parameters. 5 years ago
Joe Burzinski 3041faffab Address code review comments: revert perfect forwarding on places that didn't need it, remove negative compilation unit test. 5 years ago
Joe Burzinski 30ee690401 Add support for FMT_STRING compile time checking. Add negative compilation unit test for compilers and c++ standard that support relaxed constexpr. 5 years ago
Ron Rechenmacher faaef7686d pass log_time param by value 5 years ago
Ron Rechenmacher 9e6f5b6b2d add single logger method and log_msg constructor and tests/test_time_point.cpp 5 years ago
Martin Vejdarski 0ca2cb625e Add shared library support for Windows 6 years ago
gabime 5370443ece clang-format 6 years ago
dominicpoeschko 25b10dc264 additional log overload
calling log with a string_view as msg called
```
 template<typename... Args>
    void log(source_loc loc, level::level_enum lvl, string_view_t fmt, const Args &... args)
```

instead of
```
template<class T, typename std::enable_if<std::is_convertible<const T &, spdlog::string_view_t>::value, T>::type * = nullptr>
    void log(source_loc loc, level::level_enum lvl, const T &msg)
```

which lead to an unnecessary call to fmt::format
6 years ago
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.
6 years ago
gabime bf40855825 Micro-optimize level checking by inlining 6 years ago
gabime 79468cf676 Micro-optimze log_it_ 6 years ago
gabime 15b393193a Replaced a forgotten try with SPDLOG_TRY 6 years ago
Florian Pigorsch 4aad51a352 Fix some spelling errors.
casese -> cases (1)
chache -> cache (1)
cirucal -> circular (1)
dependecy -> dependency (1)
detrmine -> determine (2)
eavluate -> evaluate (1)
exertnal -> external (1)
ony -> only (1)
registation -> registration (3)
registring -> registering (2)
regsistration -> registration (3)
seperate -> separate (2)
wit -> with (1)
withe -> with (1)
6 years ago
gabime 9a0a0c2d8c clang-format 6 years ago
gabime fcc809f4f1 Refactored logger 6 years ago
gabime 9369fe8c27 Fix #1262 6 years ago
Gabi Melman bf49bebe7a
Update logger.h 6 years ago
gabime 4c45c6fbd8 Removed redundant func 6 years ago
gabime f795297e15 try different apprach to backtracer object 6 years ago
gabime ed8d099607 Fixed #1197 6 years ago
gabime f3a7ef1199 Fix compile bug 6 years ago