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
gabime
eec6e28b19
Async logger cleanup
2019-08-26 00:13:43 +03:00
gabime
f3e379cf78
Fixed async dump_backtrace
2019-08-25 23:55:35 +03:00
gabime
0258c47774
some cleanup in logger
2019-08-25 19:35:57 +03:00
gabime
f63df65245
some cleanup in logger
2019-08-25 19:33:12 +03:00
gabime
099137fe9a
backtrace_sink code cleanup
2019-08-25 18:05:47 +03:00
gabime
36f253893e
Pass logger name to tracer
2019-08-25 17:44:08 +03:00
gabime
a7f7984c4a
backtrace support api
2019-08-25 17:24:17 +03:00
gabime
dd33c16aae
Replace backtrace trigger with dump_backtrace()
2019-08-23 14:47:40 +03:00
gabime
8d8aacf5e9
Protect from double call to enable_backtrace()
2019-08-23 03:17:45 +03:00
gabime
33f881ac8b
clang-format
2019-08-23 02:45:41 +03:00
gabime
a6d8b52686
Added enable_backtrace to spdlog_api
2019-08-23 02:28:52 +03:00
gabime
0284a23d0a
Changed sink_it_ to accept const log_message&
2019-08-22 19:57:59 +03:00
gabime
0335e3fcc0
Print error and abort instead of throw if SPDLOG_NO_EXEPTIONS is defined
2019-08-19 11:31:33 +03:00
gabime
7ea951613d
Update logger-inl.h
2019-08-18 17:45:09 +03:00
gabime
01eb59ca9b
Removed spdlog::default_level and its usage in registry
2019-08-16 19:04:49 +03:00
gabime
a7ba6e447d
clang-format
2019-07-18 14:26:36 +03:00
gabime
3c30f77d31
limit default error handler to 1 message/second to avoid flood
2019-07-17 18:05:01 +03:00
gabime
11472eddbc
Catch sink exceptions without affecting other sinks
2019-07-17 16:01:30 +03:00
gabime
8d758add63
Relace remaining const char* with string_view_t in the API
2019-07-07 12:55:56 +03:00
Gabi Melman
b9cc158e52
Fix #1115
2019-06-19 01:24:06 +03:00
gabime
78c833a09f
clang-format
2019-06-18 17:05:27 +03:00
gabime
09cb45001b
Added copy ctor and assignment to logger
2019-06-15 19:46:41 +03:00