gabime
19dae96985
wchar filenames support - minor improvements
2016-04-10 00:02:19 +03:00
unknown
113ebcfd97
Add the SPDLOG_USE_WCHAR tweak to enable support for Unicode names on Windows. Refs #111
2016-04-08 12:26:31 -05:00
gabime
495ecaeaee
astyle
2016-04-03 02:14:54 +03:00
gabime
296623baa3
API for color support in console logger
2016-04-03 01:38:49 +03:00
gabime
e9633a5363
Merge branch 'master' of https://github.com/gabime/spdlog
2016-03-30 21:49:25 +03:00
gabime
006ac6685a
temporary removed sqlite_sink from the project (not compiling well under gcc)
2016-03-30 21:49:09 +03:00
gabime
ccabe07f3f
license
2016-03-30 19:54:42 +03:00
gabime
d405027fe9
renamed setColor
2016-03-30 19:52:32 +03:00
gabime
487c318788
ansicolor sink improvments (remove warning and uneeded string concat)
2016-03-30 19:34:40 +03:00
gabime
a2061e3780
fix sqlite3 sink
2016-03-30 19:11:32 +03:00
Gabi Melman
ff2398b6b1
Merge pull request #191 from OSVR/ansi-color-sink-decorator
...
ANSI color sink decorator
2016-03-30 00:50:11 +03:00
Gabi Melman
418dec1e4b
Merge pull request #188 from PedroRod/master
...
Added SQLite3 sink to the solution
2016-03-28 11:20:57 +03:00
gabime
04b0634b87
mscv_sink rename
2016-03-23 21:44:41 +02:00
gabime
becef922c2
add missing include
2016-03-22 01:41:10 +02:00
gabime
36a5f5188e
Merge branch 'master' of https://github.com/gabime/spdlog
2016-03-22 00:47:20 +02:00
gabime
79451368cf
Fixed issue #179 (Conflict with Boost.Asio) (by defining FMT_USE_WINDOWS_H=0 in format.h and preventing include of windows.h)
2016-03-22 00:46:41 +02:00
PedroRod
ea1d0fd37b
assigned nullptr to _database and _query_stmt upon flushing so that if flush gets called again, will not throw an exception
2016-03-20 23:13:28 -04:00
PedroRod
26ab30aba5
forgot to reset the null pointer of the bind back to SQLITE_STATIC
2016-03-20 22:07:51 -04:00
PedroRod
d8d8dfd3e2
made the prepared statement re-usable and renamed .h to sqlite_sink
2016-03-20 22:02:23 -04:00
PedroRod
571e85d0f4
changed ctrs,variables,argsguments to match code style of spdlog, also removed columns mapping since there is no clean way of set column name dynamically on a prepared statement and changed query to use prepared statements
2016-03-20 19:12:34 -04:00
PedroRod
a7011baa53
Added SQLite3 sink to the solution
2016-03-20 11:11:55 -04:00
Kevin M. Godby
ee610efd7d
Add assignment operator to ansi color sink. Adjust default colors.
2016-03-18 13:13:06 -05:00
Kevin M. Godby
e8a669fe0e
Remove member initialization because MSVC 2013 doesn't support it.
2016-03-18 11:48:02 -05:00
Kevin M. Godby
1c9f1749d3
Added ANSI color sink.
2016-03-15 20:18:08 -05:00
Alexander Dalshov
ea3eef0b5f
add msvc logging sink
2016-03-12 19:55:44 +03:00
Kevin M. Godby
077c3095eb
Added missing standard header includes.
2016-02-24 22:20:07 -06: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
e060bbf3ed
astyle
2015-12-22 21:44:03 +02:00
Gabi Melman
bb32fa1802
Update file_sinks.h
...
Fixed missing #pragma once
2015-11-29 16:14:15 +02:00
gabime
8c38b4ee9e
MIT license
2015-11-28 18:24:20 +02:00
gabime
0f76db880e
astyle
2015-11-28 16:52:02 +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
David Schury
2175b00814
Fixed thread unsafe flush method.
2015-09-17 18:58:13 +02:00
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.
2015-09-17 17:01:04 +02:00
Gabi Melman
ccc66db7fc
Update android_sink.h
...
Removed redundant check
2015-09-15 01:26:31 +03:00
Ruslan Baratov
8fdd4c3547
Add Android sink
2015-09-14 22:08:35 +03:00
gabime
ea1a92769b
Fixed rotating_logger_mt does not rotate properly if app restarts #116
2015-08-14 21:16:08 +03:00
gabime
cadd181d8d
Reverted pull #111 - wchar support under windows - it pollutes global namespace with new defines
2015-08-07 14:05:34 +03:00
Artem Martynovich
8b6df31ec9
Revert to original formatting.
2015-07-14 02:42:50 +06:00
Artem Martynovich
0e5c4b9de4
Fix Unix build. Use S("...") instead of L"..." for better compatibility.
2015-07-14 02:13:16 +06:00
Artem Martynovich
2b59393bda
Add wchar_t support for Windows.
2015-07-13 19:43:22 +06:00
gnzlbg
fbd9d924d6
adds missing flush override to simple_file_sink
2015-05-11 10:17:55 +02: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
Denis Ivaykin
849b5cb84e
flush
2015-05-08 22:57:52 +02:00
gabime
2a0d00929c
stdout_loggers now thread safe across all instances (share same stdout_sink_mt)
2015-04-18 01:47:30 +03:00
gabime
31a011e67c
Fixed daily sink syntax error and redundant file close
2015-03-12 00:49:28 +02:00
gabime
c1dd340a25
Updated cppformat to version 86a7d856fa03fb5ba96f1a27907a4b7171f42e56 and remove spdlog::details namespace from it's source
2015-02-27 11:24:10 +02:00
gabime
c401e830d0
Added option for setting rotation time in daily file ctor
2015-02-15 23:28:13 +02:00
gabi
b7b421c8fc
Added auto flush to stdout & stderr sinks
2015-01-28 23:36:16 +02:00
gabi
7635455c8d
Changed "auto_flush" to "force_flush" to better represent the meaning
2015-01-07 12:44:02 +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
fcd1fc037f
append instead of truncate when opening new files
2014-12-19 18:36:45 +02: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
gabi
d817994bd2
Moved namespace fmt to be under spdlog::details to minimize namespace pollution for the users
2014-12-09 00:01:11 +02:00
gabime
52d02af950
using mpmc bounded q for async and many async optimizations
2014-12-05 20:25:04 +02:00
gabi
243dc61e58
async using lockfree queue and bug fixes regarding usage of cppformat
2014-12-02 16:41:12 +02:00
gabime
0e3120ba51
removed include iostream
2014-12-02 02:30:42 +02:00
gabime
b0a687c148
astyle
2014-12-02 02:27:11 +02:00
gabime
ed17c9a4a9
fixed async_sink to use move instead of unique_ptr
2014-12-02 02:17:39 +02:00
gabi
2c0acf66f9
use cppformat in sinks
2014-11-29 17:10:17 +02:00
gabime
68ee9a7ada
replaced flush_interval with auto_flush boolean
2014-11-25 00:23:55 +02:00
Gabi Melman
54b868122d
Update async_sink.h
2014-11-24 15:08:53 +02:00
Gabi Melman
94d2556db6
Update last exception moving from worker thread to user thread in async mode
2014-11-24 15:02:43 +02:00
gabi
4cb6aa90b2
New async_logger class and API
2014-11-24 01:29:09 +02:00
gabime
ece27ac952
astyle
2014-11-22 10:29:06 +02:00
gabi
e2cd9285f4
async_sink user pointers in the q instead of objects in the queue (faster than moving)
2014-11-21 11:17:28 +02:00
gabi
fd3f13cd90
revert sink accepting only char* and size_t
2014-11-21 00:48:07 +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
66039c7c0e
Simplified sink interface - to just accept char* and size_t
2014-11-21 00:13:24 +02:00
gabime
a9abfbb005
Fixed rotate bug
2014-11-15 18:42:53 +02:00
Arnaud Kapp
37459ae9f1
Check return code from std::remove.
...
In case removing a file (file_sink) fails, we throw spdlog_ex.
2014-11-12 23:25:00 +01: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
gabi
baec3ec1fb
patch async_sink
2014-11-07 16:21:17 +02:00
gabi
4bd25f897f
async_sink: catch back thread exceptions and rethrow on the calling thread on the next logging request
2014-11-07 16:17:53 +02:00
gabi
4fb55903fa
fix in async_sink not to throw in destrcutor in case join failed
2014-11-07 09:43:28 +02:00
gabi
ca42657d3c
small improvment in async shutdown
2014-11-05 23:15:18 +02:00
gabi
58688d7d1c
Removed close() from sink to have RAII semantics
2014-11-05 23:07:20 +02:00
gabime
74aae4f368
readme
2014-11-01 03:20:54 +02:00
gabime
e8403e17df
astyle
2014-11-01 02:28:49 +02:00
gabi
567e85e6d4
bench
2014-11-01 02:12:12 +02:00
gabi
31971bf63b
updated example and added more creation functions
2014-10-31 03:17:40 +02:00
gabi
c7b8c762fb
spdlog
2014-10-31 01:13:27 +02:00