Commit Graph

209 Commits

Author SHA1 Message Date
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.
2021-08-13 12:11:59 +02:00
dkavolis
e471ec884e remove conditional is_convertible_* structs for wide chars 2021-08-09 17:33:00 +01:00
dkavolis
cb35191fc1 clang is acting weird with disabled constructors 2021-08-09 09:59:57 +01:00
Stephane Janel
aecdfc60a0 Fix comment and clang-format 2021-07-27 09:19:02 +02:00
gabime
9049f9aeb9 Fix ambiguous error in clang13 and c++20 2021-07-27 00:26:32 +03:00
dkavolis
d8f13cbd5b replace FormatString template argument with fmt::basic_format_string 2021-07-22 16:23:56 +01:00
dkavolis
1344d44a5a check args on formatting 2021-07-21 23:54:11 +01:00
gabime
db1bc035f7 clang-format 2021-07-20 22:55:47 +03:00
gabime
fe1a4f5fb6 Added SPDLOG_FMT_RUNTIME macro for compatibilty with fmt prior 8 2021-07-20 17:18:40 +03:00
gabime
9c90fe8264 Fixed wchar support 2021-07-20 12:53:50 +03:00
Gabi Melman
5ba95f6816
Update logger.h 2021-07-19 03:46:01 +03:00
Gabi Melman
dc38b7c3c4
Update logger.h 2021-07-19 03:20:34 +03:00
Gabi Melman
6484b03dd9
Update logger.h 2021-07-19 03:09:37 +03:00
gabime
29235d9b4b minor string_view change and comment 2021-07-19 01:15:53 +03:00
gabime
e98265a49b cosmetic reorder of logger funcs definitions 2021-07-19 00:48:01 +03:00
gabime
e87f69bdb6 Removed check if format string can be converted to fmt::is_compile_string 2021-07-19 00:12:17 +03:00
gabime
8faabb4e3a Fix msvc compile 2021-07-10 17:33:08 +03:00
gabime
2838c2c8a5 use vformat_to instead for format_to for better performance 2021-07-10 17:00:13 +03:00
gabime
70b36aa55d Remove fmt::runtime() wrapper in logger.h 2021-07-10 14:07:32 +03:00
gabime
0f83b33d4f backward compatibility with fmt version < 8 2021-07-10 13:48:06 +03:00
Gabi Melman
ffd813435a
fix compile error again with wchar formatting 2021-06-26 20:10:21 +03:00
gabime
cdad84aa46 merge 2021-06-26 18:02:09 +03:00
gabime
a5f5ff70e0 Fixed clang c++20 compile 2021-06-26 17:58:45 +03:00
Gabi Melman
6811112208
Update logger.h 2021-06-24 19:42:12 +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
e9635c7b2d rethrnow non std exceptions to fix #533 2021-05-01 00:29:36 +03:00
dkavolis
23572369fc Perfect forwarding for arguments 2020-11-02 00:37:03 +00:00
gabime
231ca50700 clang-format 2020-09-26 15:34:05 +03:00
gabime
e69699e12c enable_if 2020-06-08 00:38:30 +03:00
gabime
b0c4794305 Use default pointer type in enable_if 2020-06-06 14:25:36 +03:00
Joe Burzinski
741b0d6e82 Address code review comments: remove perfect forwarding on FormatString template parameters. 2020-06-03 21:47:48 -05:00
Joe Burzinski
3041faffab Address code review comments: revert perfect forwarding on places that didn't need it, remove negative compilation unit test. 2020-06-02 20:30:25 -05:00
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. 2020-05-31 13:15:40 -05:00
Ron Rechenmacher
faaef7686d pass log_time param by value 2020-04-18 22:44:13 -05:00
Ron Rechenmacher
9e6f5b6b2d add single logger method and log_msg constructor and tests/test_time_point.cpp 2020-04-18 08:58:11 -05:00
Martin Vejdarski
0ca2cb625e Add shared library support for Windows 2020-03-10 03:14:36 +07:00
gabime
5370443ece clang-format 2020-02-10 17:13:41 +02:00
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
2020-02-08 11:11:04 +01: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
bf40855825 Micro-optimize level checking by inlining 2019-11-03 17:04:34 +02:00
gabime
79468cf676 Micro-optimze log_it_ 2019-11-03 17:00:12 +02:00
gabime
15b393193a Replaced a forgotten try with SPDLOG_TRY 2019-11-03 15:16:03 +02:00
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)
2019-10-19 09:42:38 +02:00
gabime
9a0a0c2d8c clang-format 2019-10-18 16:14:08 +03:00
gabime
fcc809f4f1 Refactored logger 2019-10-18 16:10:57 +03:00
gabime
9369fe8c27 Fix #1262 2019-10-09 21:41:02 +03:00
Gabi Melman
bf49bebe7a
Update logger.h 2019-10-01 01:50:18 +03:00
gabime
4c45c6fbd8 Removed redundant func 2019-09-05 02:31:23 +03:00
gabime
f795297e15 try different apprach to backtracer object 2019-09-05 00:39:11 +03:00
gabime
ed8d099607 Fixed #1197 2019-08-29 01:05:23 +03:00