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
Felix Gündling
7fd91e5512
include/spdlog/sinks/syslog_sink.h: add missing <array> include (gcc 4.7 complains)
2014-12-24 16:11:20 +01:00
gabime
40a55b8e34
astyle
2014-12-21 02:47:04 +02:00
gabime
d163b8c45a
astyle
2014-12-21 02:42:37 +02:00
gabime
b1867cfba3
log levels now lowercase
2014-12-21 01:30:39 +02:00
Jens Breitbart
67b633880b
Replaced throw() with noexcept and removed some unneeded ';'.
2014-12-20 15:06:36 +01:00
gabime
92f2b7556e
syslog improvments
2014-12-19 18:01:49 +02:00
gabime
689960f27c
fix syslog bug
2014-12-18 21:38:37 +02:00
fooinha
c44ca12d57
Call closelog in syslog sink's destructor
2014-12-18 16:40:57 +00:00
fooinha
375b88c191
Optional arguments for syslog_logger factory.
2014-12-18 15:47:43 +00:00
fooinha
8c9a6fc02c
* openlog setup for syslog sink
2014-12-16 15:13:35 +00:00
gabime
ece27ac952
astyle
2014-11-22 10:29:06 +02:00
gabime
a3a8f107a4
revert syslog
2014-11-21 00:46:57 +02:00
gabime
c2fc8edfed
syslog compile
2014-11-21 00:31:53 +02:00
Gabi Melman
8f24fc5f14
Update syslog_sink.h
...
Removed un needed includes
2014-11-11 15:44:46 +02:00
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.
2014-11-11 13:49:19 +01:00