Commit Graph

66 Commits (e060bbf3ed7dbbc34f6f55fefbf45ab3bf7d1934)

Author SHA1 Message Date
gabime e060bbf3ed astyle 10 years ago
Gabi Melman bb32fa1802 Update file_sinks.h
Fixed missing #pragma once
10 years ago
gabime 8c38b4ee9e MIT license 10 years ago
gabime 0f76db880e astyle 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
David Schury 2175b00814 Fixed thread unsafe flush method. 10 years ago
David Schury e12c50a8a5 Add distributional sink
Setting up dist_sink to a logger will inject a layer between the logger and
(some of) it's sinks. Sinks can be added and removed to dist_sink dynamically.
10 years ago
Gabi Melman ccc66db7fc Update android_sink.h
Removed redundant check
10 years ago
Ruslan Baratov 8fdd4c3547 Add Android sink 10 years ago
gabime ea1a92769b Fixed rotating_logger_mt does not rotate properly if app restarts #116 10 years ago
gabime cadd181d8d Reverted pull #111 - wchar support under windows - it pollutes global namespace with new defines 10 years ago
Artem Martynovich 8b6df31ec9 Revert to original formatting. 10 years ago
Artem Martynovich 0e5c4b9de4 Fix Unix build. Use S("...") instead of L"..." for better compatibility. 10 years ago
Artem Martynovich 2b59393bda Add wchar_t support for Windows. 10 years ago
gnzlbg fbd9d924d6 adds missing flush override to simple_file_sink 10 years ago
gabime 64850dcb0c small style fixes 10 years ago
Denis Ivaykin 63e0012e34 flush in logger 10 years ago
Denis Ivaykin 849b5cb84e flush 10 years ago
gabime 2a0d00929c stdout_loggers now thread safe across all instances (share same stdout_sink_mt) 11 years ago
gabime 31a011e67c Fixed daily sink syntax error and redundant file close 11 years ago
gabime c1dd340a25 Updated cppformat to version 86a7d856fa03fb5ba96f1a27907a4b7171f42e56 and remove spdlog::details namespace from it's source 11 years ago
gabime c401e830d0 Added option for setting rotation time in daily file ctor 11 years ago
gabi b7b421c8fc Added auto flush to stdout & stderr sinks 11 years ago
gabi 7635455c8d Changed "auto_flush" to "force_flush" to better represent the meaning 11 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 fcd1fc037f append instead of truncate when opening new files 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
gabi d817994bd2 Moved namespace fmt to be under spdlog::details to minimize namespace pollution for the users 11 years ago
gabime 52d02af950 using mpmc bounded q for async and many async optimizations 11 years ago
gabi 243dc61e58 async using lockfree queue and bug fixes regarding usage of cppformat 11 years ago
gabime 0e3120ba51 removed include iostream 11 years ago
gabime b0a687c148 astyle 11 years ago
gabime ed17c9a4a9 fixed async_sink to use move instead of unique_ptr 11 years ago
gabi 2c0acf66f9 use cppformat in sinks 11 years ago
gabime 68ee9a7ada replaced flush_interval with auto_flush boolean 11 years ago
Gabi Melman 54b868122d Update async_sink.h 11 years ago
Gabi Melman 94d2556db6 Update last exception moving from worker thread to user thread in async mode 11 years ago
gabi 4cb6aa90b2 New async_logger class and API 11 years ago
gabime ece27ac952 astyle 11 years ago
gabi e2cd9285f4 async_sink user pointers in the q instead of objects in the queue (faster than moving) 11 years ago
gabi fd3f13cd90 revert sink accepting only char* and size_t 11 years ago
gabime a3a8f107a4 revert syslog 11 years ago