Commit Graph

65 Commits

Author SHA1 Message Date
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
gabime 7ddfb2b877 fixed macros and other stuff for the no-streams branch 2016-07-09 00:46:00 +03:00
gabime 0d26359856 astyle 2016-04-20 11:57:49 +03:00
gabime 495ecaeaee astyle 2016-04-03 02:14:54 +03:00
Kevin M. Godby 196689f720 Fixed header include problems. 2016-02-24 21:26:18 -06:00
Sebastian Messmer 7b8d507615 Allow syslog logger on Mac OS X 2016-02-13 15:50:51 +01:00
gabime 8c38b4ee9e MIT license 2015-11-28 18:24:20 +02:00
Chris Hiszpanski 08f41d4f65 Update syslog_sink.h
Syslog already adds formatting, such as the identifier set with `openlog` in the constructor, the priority, and timestamp -- using the formatted message duplicates this information in the log message. This especially causes problems when the syslog is forwarded to aggregators such as Loggly, Logstash, etc. which can parse log messages which are JSON. However, the duplicated fields which spdlog prepends interfere with this -- better to use `raw` in the syslog case I think, or perhaps add an ability to use custom formatters on individual sinks.
2015-10-21 11:49:35 -07:00
gabime 64850dcb0c small style fixes 2015-05-09 16:03:43 +03:00
Denis Ivaykin 63e0012e34 flush in logger 2015-05-09 13:24:01 +02:00