Commit Graph

2470 Commits

Author SHA1 Message Date
gabime
5559847331 Removed unused include 2024-05-03 18:48:42 +03:00
gabime
dc24a858f2 Removed redundant inline keyword 2024-05-03 18:46:12 +03:00
gabime
7ea98fba29 Removed unused includes 2024-05-03 18:45:07 +03:00
gabime
8d81cca86c constexpr in tcp_client_unix 2024-05-03 18:34:16 +03:00
gabime
06be4409e6 clang-format 2024-05-03 18:30:46 +03:00
gabime
15829cfb84 Added final keywords to sinks and pattern_formatter.cpp 2024-05-03 18:30:04 +03:00
gabime
4ee50804d3 Removed unused include 2024-05-03 16:13:49 +03:00
Gabi Melman
f0b96d2ad1
Update mdc.h 2024-03-29 22:13:01 +03:00
gabime
8d6a121b73 Added mdc.h 2024-03-29 17:14:21 +03:00
gabime
ca7c846089 Fixed warning 2024-03-16 19:30:49 +02:00
Alan Candido
5a207ad9ce Update stopwatch.h (#3034)
Adding elapsed time in milliseconds.
2024-03-16 17:15:16 +02:00
magnus-nomono
87b8401011 Add missing include (#3026) 2024-03-16 17:13:17 +02:00
gabime
8e10782a58 Ported pull #3023 with some changes and tests 2024-03-16 17:12:46 +02:00
cohdan
dd8dc8105a Expose the flusher thread object to user in order to allow setting of thread name and thread affinity when needed (#3009)
* Expose the flusher thread object to user in order to allow setting of thread name and thread affinity when needed

* Code review fix - periodic_worker thread getter should return a reference and not a pointer
2024-03-16 16:40:51 +02:00
Dimitri Papadopoulos Orfanos
c577b54b06 Fix typos found by codespell (#3011) 2024-03-16 16:38:55 +02:00
gabime
0992a41053 Cleaned os.h 2024-01-14 12:45:56 +02:00
gabime
d61f0a5d5e Fix include paths 2024-01-14 12:20:05 +02:00
gabime
885b796447 Refactored os.cpp to os_unix.cpp and os_windows.cpp 2024-01-14 12:09:22 +02:00
gabime
3954caccc1 Clean os.h macros 2024-01-14 11:05:37 +02:00
gabime
aaebfbb5c6 Fixd some clang-tidy warnings 2024-01-13 19:21:41 +02:00
gabime
ce3922cff1 Fix some typos 2024-01-13 18:53:19 +02:00
gabime
c539f36551 clang format 2024-01-13 18:20:08 +02:00
gabime
287d83acae Removed unused include 2024-01-13 12:01:02 +02:00
gabime
f70670d26c Removed SPDLOG_EOL define 2024-01-13 10:32:55 +02:00
gabime
77b07b3a10 clang format 2024-01-13 09:37:32 +02:00
gabime
4789065700 Remove custom level names from macro 2024-01-13 09:32:01 +02:00
gabime
24fe442d03 Use relative includes and create spdlog_config.h 2024-01-12 17:33:23 +02:00
gabime
feaab0dd9f Use relative include files 2024-01-12 17:21:57 +02:00
gabime
a3e05332b0 Removed fmt wrapper files 2024-01-12 15:52:32 +02:00
gabime
68e71cfc49 Revert "force constexpr of empty source_loc"
This reverts commit 7e3700f650.
2023-12-25 00:03:16 +02:00
Gabi Melman
7e3700f650 force constexpr of empty source_loc 2023-12-24 18:38:40 +02:00
gabime
1161d640a1 Removed bundled fmtlib. Use FetchContent instead 2023-12-22 16:19:05 +02:00
Marcus Müller
9797b353c0 fmt/*.h: include tweakme.h to set SPDLOG_FMT_EXTERNAL according to system (#2923)
Signed-off-by: Marcus Müller <marcus@hostalia.de>
2023-10-27 15:27:15 +03:00
shannonbooth
d53e8abc74 sinks: Make syslog_sink.h's syslog_prio_from_level protected (#2918)
To allow for using this function from a derived sink.
2023-10-27 15:26:45 +03:00
M010
efcca400bf Fix wrong thread_id (TID) in systemd_sink.h (#2919) 2023-10-27 15:25:34 +03:00
gabime
83d5f3dbad Revert 70f7a8252d 2023-10-21 13:56:42 +03:00
gabime
bc7e80c7ae Removed include null_mutex.h from common.h 2023-10-21 13:48:19 +03:00
gabime
70f7a8252d Always <format> if SPDLOG_USE_STD_FORMAT defined 2023-10-21 13:43:30 +03:00
gabime
5782891494 Removed SPDLOG_FMT_RUNTIME definition 2023-10-21 13:36:52 +03:00
gabime
82a672a4d3 Removed console_globals.h file 2023-10-06 17:17:46 +03:00
Gabi Melman
c10acd23ce
Update fmt.h 2023-10-02 20:24:00 +03:00
Gabi Melman
b1b6a22955
Update fmt.h 2023-10-02 20:20:44 +03:00
gabime
61b11e77b9 constexpr support for source location without leading directory 2023-10-01 23:54:54 +03:00
gabime
57868277db clang format 2023-10-01 18:01:02 +03:00
gabime
eb256827f1 Fixed nodiscard location 2023-10-01 17:56:42 +03:00
Gabi Melman
08648e58ad Fixed wincolor sink 2023-10-01 15:18:55 +03:00
Gabi Melman
9a7a9f6871 Removed ref from to_string_ in ansicolor sink 2023-10-01 15:04:35 +03:00
gabime
9390881046 Retruned color codes to ansi-color header 2023-10-01 13:32:18 +03:00
gabime
a8efa85b86 Remove global console mutex (wip) 2023-10-01 12:20:48 +03:00
Gabi Melman
af8354575d
Update common.h 2023-09-29 03:21:28 +03:00
Gabi Melman
9163bbde14
Update win_eventlog_sink.h 2023-09-29 02:51:57 +03:00
gabime
8dc7ba7e3d Cleaned tests 2023-09-29 00:45:09 +03:00
gabime
b169859ce9 Removed unneeded ifdef around msvc sink 2023-09-29 00:35:38 +03:00
gabime
4f36d1933a Added missing include 2023-09-29 00:31:45 +03:00
gabime
2bdddc61e8 minor cleanup 2023-09-29 00:23:08 +03:00
gabime
463af69d41 Clang format sort includes 2023-09-29 00:20:26 +03:00
gabime
a0e631802c Replaced include <spdlog/..> with include "spdlog/.." 2023-09-29 00:06:17 +03:00
gabime
a3934472c9 Relative include paths in headers 2023-09-28 23:45:45 +03:00
gabime
976d3d20b6 Fixed ifdefs 2023-09-28 22:58:50 +03:00
gabime
0773e11883 relative includes wip 2023-09-28 00:46:42 +03:00
gabime
4bb3b56102 relative includes wip 2023-09-28 00:42:16 +03:00
gabime
967554e4c5 added comments 2023-09-26 10:31:17 +03:00
Gabi Melman
030bcb8890
Update common.h 2023-09-26 01:53:55 +03:00
Gabi Melman
7ac740a029
Update common.h 2023-09-26 01:43:48 +03:00
gabime
6dffd7c6e8 update clang format again 2023-09-25 16:40:05 +03:00
gabime
f36b2c5f93 reformat code 2023-09-25 16:19:27 +03:00
gabime
dcd5904bdc Updated clang-format
Merged with origin
2023-09-25 16:11:53 +03:00
gabime
6de0ffa15f Updated clang format to google style 2023-09-25 02:35:55 +03:00
gabime
66de161355 fix fwd 2023-09-25 02:20:13 +03:00
gabime
e28eadcd52 Clang format 2023-09-24 20:43:14 +03:00
gabime
2a1959c2ce wip static_only 2023-09-24 20:26:32 +03:00
gabime
cff3e27115 Removed usages of SPDLOG_COMPILED_LIB macro 2023-09-24 13:32:48 +03:00
gabime
6d520df916 Removed header only options 2023-09-24 13:27:26 +03:00
gabime
fc81e0390b Removed SPDLOG_COMPILED_LIB/HEADER_ONLY macros from common.h 2023-09-24 13:02:30 +03:00
gabime
b16a8951bc Added more [[nodiscard]] to functions in common 2023-09-24 11:53:04 +03:00
gabime
a34fb3761c Added nodiscard to level_to_number() 2023-09-24 11:50:24 +03:00
gabime
73eb6bc1f5 Replace static_cast with level_to_number in color sinks 2023-09-24 11:48:46 +03:00
Gabi Melman
7d3b5a1b10
Update wincolor_sink-inl.h 2023-09-23 18:45:36 +03:00
gabime
9a7448e4c8 Renamed to level_to_number 2023-09-23 18:21:27 +03:00
gabime
433cac487e Renamed spdlog::log_level to spdlog::level and added some level tests 2023-09-23 17:59:51 +03:00
gabime
7c0afada60 check SPDLOG_SOURCE_LOCATION in macros and in runtime 2023-09-23 02:03:48 +03:00
gabime
ea1c829764 fix warning 2023-09-23 01:53:03 +03:00
Gabi Melman
e315bcb2a9 Fix compilations in windows 2023-09-23 01:48:38 +03:00
gabime
e63d110baa use constexpr for colors in ansicolor_sink 2023-09-23 01:14:20 +03:00
gabime
5683d16b36 Fix atomic level 2023-09-23 00:55:47 +03:00
gabime
7d9cf59649 Fix atomic level 2023-09-23 00:46:15 +03:00
gabime
31a7dc6e1e Fix atomic level 2023-09-23 00:42:36 +03:00
gabime
3a405ba958 Fix atomic level 2023-09-23 00:30:24 +03:00
gabime
392917f855 null_atomic_log_level and fix compile 2023-09-23 00:27:32 +03:00
gabime
ac2955cb48 Use std::array for string levels storage 2023-09-22 23:20:54 +03:00
gabime
96bed42974 Clean level names logic and inline them 2023-09-22 21:38:04 +03:00
gabime
3d5ddea136 Use std::vformat 2023-09-22 18:24:45 +03:00
gabime
a3ef3ab7a4 Removed SPDLOG_FMT_STRING 2023-09-22 18:24:45 +03:00
gabime
b777497b0d Removed un needed inline specifier 2023-09-22 18:24:45 +03:00
gabime
5c93f5ff34 Revert last commit 2023-09-22 18:24:45 +03:00
gabime
9c1e1c85aa Removed un needed loc_with_fmt constructor 2023-09-22 18:24:45 +03:00
gabime
8488b027e9 Formatting 2023-09-22 18:24:45 +03:00
gabime
ad18d4e1cb Added missing include to <spdlog/fmt/xchar.h> 2023-09-22 18:24:45 +03:00
gabime
c0c1b49fa3 Fixed soruce location macro names 2023-09-22 18:24:45 +03:00
gabime
3979bd15f7 Fixed build 2023-09-22 18:24:45 +03:00