gabime
433cac487e
Renamed spdlog::log_level to spdlog::level and added some level tests
2023-09-23 17:59:51 +03:00
gabime
392917f855
null_atomic_log_level and fix compile
2023-09-23 00:27:32 +03:00
gabime
af2f24de07
Removed swap from logger and renamed source location macro to SPDLOG_USE_SOURCE_LOCATION
2023-09-22 18:24:45 +03:00
gabime
90e92438c8
clang format
2023-09-22 18:24:45 +03:00
gabime
1faeb5b6fa
Minor cleanups
2023-09-22 18:24:45 +03:00
gabime
19d4e60561
Replaced details::make_unique with std::make_unique
2023-09-22 18:24:45 +03:00
gabime
7c054b6dba
Inlined sink_it_
2023-09-22 18:24:45 +03:00
gabime
e1ee0c62a7
Replaced SPDLOG_CONSTEXPR and SPDLOG_NOEXCEPT macros with c++20 keywords
2023-09-22 18:24:45 +03:00
gabime
6cac90b89a
clang format
2023-09-22 18:24:45 +03:00
gabime
92daf6954b
Removed backtrace feature
2023-09-22 18:24:45 +03:00
gabime
ea1af20840
Update error message in default error handler
2023-05-27 15:34:33 +03:00
György Katona
8512000f36
Unnecessary backtrace begin/end logs ( #2568 )
...
* add empty getter function to tracer
* add unit test to check empty tracer
Co-authored-by: Gyorgy Katona <gykatona@logmein.com>
2022-12-09 10:25:17 +02:00
Wolfgang Petroschka
ed27592537
Switch additional information to source location of bad log message
2021-08-17 15:26:59 +02:00
Wolfgang Petroschka
df45d78d14
Windows/wchar problems
...
Mixing char types in libfmt is a problem and WIP.
2021-08-13 13:53:35 +02:00
Wolfgang Petroschka
c98b29aa67
Fix empty additional info, 2nd try
...
There's actually a diffent string view type for wide string...
2021-08-13 12:49:02 +02:00
Wolfgang Petroschka
388679b00e
Fix empty additional info
...
does not work with wchar_t based string.
2021-08-13 12:30:49 +02:00
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
gabime
e7e8b75a4c
clang-format
2021-07-19 00:50:51 +03:00
gabime
5b345534dc
Minor change in ifdef for clarity
2020-09-30 17:29:44 +03:00
Gabi Melman
c8dc318fb3
Update logger-inl.h
2020-09-29 02:23:03 +03:00
Gabi Melman
23cb1a1080
Update logger-inl.h
2020-09-29 02:20:43 +03:00
Dirk Eddelbuettel
3cf4d34094
let R header defines switch to REprintf over fprintf(stdderr)
2020-09-28 17:13:09 -05:00
Gabi Melman
752d5685dc
Moved pattern formatter from spdlog/details to spdlog/
2020-03-21 13:33:04 +02:00
Gabi Melman
0120dcc787
Update logger-inl.h
2020-02-29 13:20:26 +02:00
Steven Cartmell
f999d879d5
fix: Break from loop on last iteration to resolve clang-tidy warning
...
The clang-tidy warning `clang-analyzer-cplusplus.Move` warns when a
moved from object is deferenced. This is triggered in spdlog because
clang-tidy fails to detect that the `logger:set_formatter` will only
move the unique_ptr on the last iteration of the loop, assuming that
`f->clone` may be called on it afterwards.
To fix, add a break statement after moving the pointer (on the last
iteration) to let clang-tidy know the logger pointer is not used after
this point.
2020-02-28 21:09:31 +00:00
gabime
bff85725d2
Fixed some more clang-tidy warnings
2019-11-08 16:20:41 +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
bf40855825
Micro-optimize level checking by inlining
2019-11-03 17:04:34 +02:00
gabime
3ee4f2810d
Micro-optimze log_it_
2019-11-03 17:01:58 +02:00
gabime
79468cf676
Micro-optimze log_it_
2019-11-03 17:00:12 +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
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
5cd0b6272d
Update logger-inl.h
2019-10-01 01:56:02 +03:00
gabime
bd9e1475e2
clang-format
2019-09-07 20:11:35 +03:00
gabime
4c45c6fbd8
Removed redundant func
2019-09-05 02:31:23 +03:00
gabime
5c2855e1c1
wip backtracer
2019-09-05 01:25:00 +03:00
gabime
f795297e15
try different apprach to backtracer object
2019-09-05 00:39:11 +03:00
gabime
3fd3c47e6d
Update logger-inl.h
2019-09-03 18:20:27 +03:00
gabime
153c25dbb3
Update logger-inl.h
2019-09-03 17:55:34 +03:00
gabime
3ea7fb18d6
Fix potential race condidion when in logger copy ctor
...
Don't copy other.trace - just create a new one with same size instead
2019-09-03 14:54:17 +03:00
gabime
ed8d099607
Fixed #1197
2019-08-29 01:05:23 +03:00
gabime
c97c025adb
clang-format
2019-08-27 20:22:07 +03:00
gabime
c55336e78d
Better support for logger copy with backtrace
2019-08-27 20:20:15 +03:00
gabime
11e9752536
Fixed logger's copy ctor
2019-08-27 01:56:48 +03:00
gabime
408a162044
Removed logger::clone() from API
2019-08-27 01:16:57 +03:00
gabime
e1be7f3d6f
Refactoring to better support backtrace
2019-08-27 00:56:49 +03:00
gabime
04a8485b17
Replaced backtace implementation
2019-08-26 19:59:16 +03:00
gabime
f330dd210e
Renamed file
2019-08-26 13:43:42 +03:00
gabime
292fc153ef
clang-format
2019-08-26 00:55:14 +03:00