Commit Graph

74 Commits

Author SHA1 Message Date
Philippe Vaucher
eeb22c13bb
Allow customization of syslog_sink (#3124)
Thanks @Silex
2024-07-03 22:51:11 +03:00
shannonbooth
2d5179ba7d
sinks: Make syslog_sink.h's syslog_prio_from_level protected (#2918)
To allow for using this function from a derived sink.
2023-10-23 22:49:01 +03:00
gabime
0a53eafe18 update clang format again 2023-09-25 16:40:36 +03:00
gabime
4b2a8219d5 reformat code 2023-09-25 16:20:42 +03:00
gabime
9d52261185 clang format 2023-09-25 16:08:29 +03:00
gabime
1a0bfc7a89 clang format 2023-09-25 02:44:07 +03:00
Gabi Melman
b9726ba66d
Update syslog_sink.h 2020-04-13 21:12:42 +03:00
Gabi Melman
b20ffa7369
Fix #1523 2020-04-13 21:09:27 +03: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
3b425affd3 Fixed missing braces around initializer warnings about std::array initializations 2019-09-21 15:13:50 +03:00
gabime
b6388a15ff Fix issue #1223 2019-09-13 11:38:24 +03:00
gabime
f5492aed12 Unified usage of fmt::memory_buffer across the codebase 2019-08-28 18:46:09 +03:00
gabime
87ec1ab97b Fixed clang warnings 2019-08-19 12:06:29 +03:00
gabime
9fbf82b603 Fixed gcc9 conversion warning 2019-07-15 01:31:31 +03:00
gabime
5f27697198 clang-format 2019-07-10 02:42:47 +03:00
gabime
847f7de003 Simplify syslog sinks overflow check 2019-07-10 02:19:16 +03:00
Mattias Jernberg
d969f8621d Fix syslog output
payload does not appear to be reliably null terminated and leaks
data. Use size to the formatter to reliably terminate messages.
2019-07-08 13:14:15 +02:00
gabime
f5831d5132 clang-format 2019-07-05 10:45:37 +03:00
gabime
90dd56b839 Fix #1130 2019-07-05 10:44:54 +03:00
gabime
d1d2609f49 Updated syslog_sink 2019-06-28 17:31:28 +03:00
gabime
29f2eeea31 Removed formatter_ member from the sink interface 2019-06-27 23:56:37 +03:00
Gabi Melman
246b4b01c5
Update syslog_sink.h 2019-06-26 01:21:40 +03:00
gabime
220608e52a clang-format 2019-06-19 18:31:21 +03:00
gabime
e68cf1c9ed Add formatting option to syslog in ctor. Fix issue #729 #1107 2019-06-19 00:52:38 +03:00
gabime
bcfa9241b8 Updated copyright headers 2019-06-04 00:09:16 +03:00
gabime
78eeba940a Fix issue #114 2019-06-03 23:20:53 +03:00
gabime
46ef71e3ec Normalized copyright message 2019-05-11 20:06:17 +03:00
gabime
23fdc0eae4 Fixed issue #959 2019-01-17 17:09:35 +02:00
gabime
70bef682b0 Fixed clang-tidy warning about implicit conversion to string_view 2018-10-19 17:12:02 +03:00
gabime
6355e9895d Major change to log_msg - contain only string_view instead of buffer 2018-10-19 02:15:50 +03:00
Jerome Meyer
cb71fea0f6 Use fmt::string_view when logging a C string to avoid unnecessary copy 2018-10-18 11:04:20 -04:00
gabime
b368d18b0f Added default logger API 2018-10-12 03:04:55 +03:00
gabime
05d6960ebc code formatting and clang tidy warnings fixes 2018-08-13 10:30:02 +03:00
gabime
9e4925eff0 clang format 2018-07-21 23:48:07 +03:00
gabime
c2a49080aa Refactored sink interface and base_sink 2018-07-14 16:21:53 +03:00
gabime
cdbf2e361b Upgrade to fmt 5.x 2018-06-12 18:48:22 +03:00
gabime
a21594bec7 move underscores to the end of private members 2018-06-10 22:59:17 +03:00
gabime
caa26a2a47 Normalized spdlog include paths 2018-04-29 01:31:09 +03:00
gabime
c962c88342 Fixed linux port of v1.x 2018-04-20 13:20:19 +03:00
gabime
e4d3eb64e6 Udpated example and spdlog.h 2018-04-20 02:57:05 +03:00
gabime
56e4a201ec formatting 2018-03-17 12:47:46 +02:00
gabime
a2653d409f clang-format 2018-03-09 15:26:33 +02:00
Thiago Bastos
d044369e3b Fix implicit conversion warnings (-Wsign-conversion) 2018-03-05 20:00:48 +01:00
Daniel Chabrowski
fb6df0512f modernize-use-override 2018-02-24 23:56:56 +01:00
JP Cimalando
76d2620dad correct include path for sink/syslog_sink.h 2017-11-14 14:25:43 +01:00
daylanKifky
27e7412640 modified path on quoted #includes
Paths pointing to the root of the library where replaced for ones relatives to each file.

For example, inside /include/spdlog/details/file_helper.h:

This will look for os.h in /include/spdlog/details/spdlog/details/ which doesn't exists.

replaced with:
2017-11-11 13:44:27 +01:00
gabime
13fb2550c6 Fixed issue #449 2017-05-21 20:39:54 +03:00
gabime
b13735dc22 astyle 2016-08-22 20:54:18 +03:00
Nazım Can Bedir
2678c37b56 Move syslog support tests to one place. 2016-08-22 16:39:13 +03:00
gabime
5b2bd79b7e Added support for syslog in FreeBSD 2016-08-21 00:57:53 +03:00