Commit Graph

32 Commits (97cdbc45e8b647e161d559df3b5de02a6ba5a4c6)

Author SHA1 Message Date
Thiago Bastos d044369e3b Fix implicit conversion warnings (-Wsign-conversion) 8 years ago
Daniel Chabrowski fb6df0512f modernize-use-override 8 years ago
JP Cimalando 76d2620dad correct include path for sink/syslog_sink.h 8 years ago
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:
8 years ago
gabime 13fb2550c6 Fixed issue #449 8 years ago
gabime b13735dc22 astyle 9 years ago
Nazım Can Bedir 2678c37b56 Move syslog support tests to one place. 9 years ago
gabime 5b2bd79b7e Added support for syslog in FreeBSD 9 years ago
gabime 7ddfb2b877 fixed macros and other stuff for the no-streams branch 9 years ago
gabime 0d26359856 astyle 9 years ago
gabime 495ecaeaee astyle 10 years ago
Kevin M. Godby 196689f720 Fixed header include problems. 10 years ago
Sebastian Messmer 7b8d507615 Allow syslog logger on Mac OS X 10 years ago
gabime 8c38b4ee9e MIT license 10 years ago
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.
10 years ago
gabime 64850dcb0c small style fixes 10 years ago
Denis Ivaykin 63e0012e34 flush in logger 10 years ago
Felix Gündling 7fd91e5512 include/spdlog/sinks/syslog_sink.h: add missing <array> include (gcc 4.7 complains) 11 years ago
gabime 40a55b8e34 astyle 11 years ago
gabime d163b8c45a astyle 11 years ago
gabime b1867cfba3 log levels now lowercase 11 years ago
Jens Breitbart 67b633880b Replaced throw() with noexcept and removed some unneeded ';'. 11 years ago
gabime 92f2b7556e syslog improvments 11 years ago
gabime 689960f27c fix syslog bug 11 years ago
fooinha c44ca12d57 Call closelog in syslog sink's destructor 11 years ago
fooinha 375b88c191 Optional arguments for syslog_logger factory. 11 years ago
fooinha 8c9a6fc02c * openlog setup for syslog sink 11 years ago
gabime ece27ac952 astyle 11 years ago
gabime a3a8f107a4 revert syslog 11 years ago
gabime c2fc8edfed syslog compile 11 years ago
Gabi Melman 8f24fc5f14 Update syslog_sink.h
Removed un needed includes
11 years ago
Arnaud Kapp 67eef26c26 Add a syslog() based sink for Linux.
This commit introduce a new sink: syslog_sink.
This sink is Linux only, and will write log entries to the system
logger, using the syslog() library call.

It is instanciable using spdlog::syslog_logger(name). Note that
the suffix _st or _mt is not present, as syslog() is thread-safe.

I also applied @gabime reviews and added license header.
11 years ago