Commit Graph

68 Commits (a4743370e2bbee3493740e0af3ef8732f6e915c6)

Author SHA1 Message Date
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 c98b29aa67 Fix empty additional info, 2nd try
There's actually a diffent string view type for wide string...
4 years ago
Wolfgang Petroschka 388679b00e Fix empty additional info
does not work with wchar_t based string.
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
gabime e7e8b75a4c clang-format 4 years ago
gabime 5b345534dc Minor change in ifdef for clarity 5 years ago
Gabi Melman c8dc318fb3
Update logger-inl.h 5 years ago
Gabi Melman 23cb1a1080
Update logger-inl.h 5 years ago
Dirk Eddelbuettel 3cf4d34094 let R header defines switch to REprintf over fprintf(stdderr) 5 years ago
Gabi Melman 752d5685dc Moved pattern formatter from spdlog/details to spdlog/ 6 years ago
Gabi Melman 0120dcc787
Update logger-inl.h 6 years ago
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.
6 years ago
gabime bff85725d2 Fixed some more clang-tidy warnings 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 3ee4f2810d Micro-optimze log_it_ 6 years ago
gabime 79468cf676 Micro-optimze log_it_ 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 fcc809f4f1 Refactored logger 6 years ago
gabime 9369fe8c27 Fix #1262 6 years ago
Gabi Melman 5cd0b6272d
Update logger-inl.h 6 years ago
gabime bd9e1475e2 clang-format 6 years ago
gabime 4c45c6fbd8 Removed redundant func 6 years ago
gabime 5c2855e1c1 wip backtracer 6 years ago
gabime f795297e15 try different apprach to backtracer object 6 years ago
gabime 3fd3c47e6d Update logger-inl.h 6 years ago
gabime 153c25dbb3 Update logger-inl.h 6 years ago
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
6 years ago
gabime ed8d099607 Fixed #1197 6 years ago
gabime c97c025adb clang-format 6 years ago
gabime c55336e78d Better support for logger copy with backtrace 6 years ago
gabime 11e9752536 Fixed logger's copy ctor 6 years ago
gabime 408a162044 Removed logger::clone() from API 6 years ago
gabime e1be7f3d6f Refactoring to better support backtrace 6 years ago
gabime 04a8485b17 Replaced backtace implementation 6 years ago
gabime f330dd210e Renamed file 6 years ago
gabime 292fc153ef clang-format 6 years ago
gabime eec6e28b19 Async logger cleanup 6 years ago
gabime f3e379cf78 Fixed async dump_backtrace 6 years ago
gabime 0258c47774 some cleanup in logger 6 years ago
gabime f63df65245 some cleanup in logger 6 years ago
gabime 099137fe9a backtrace_sink code cleanup 6 years ago
gabime 36f253893e Pass logger name to tracer 6 years ago
gabime a7f7984c4a backtrace support api 6 years ago
gabime dd33c16aae Replace backtrace trigger with dump_backtrace() 6 years ago
gabime 8d8aacf5e9 Protect from double call to enable_backtrace() 6 years ago
gabime 33f881ac8b clang-format 6 years ago
gabime a6d8b52686 Added enable_backtrace to spdlog_api 6 years ago
gabime 0284a23d0a Changed sink_it_ to accept const log_message& 6 years ago