David Bariod
f3df9aeffd
Merge branch 'master' of git://github.com/mariannefeng/logrus into mariannefeng-master
2018-09-08 11:18:16 +02:00
David Bariod
87dfa988d1
Merge branch 'json_use_buf_pool' of git://github.com/taylorchu/logrus into taylorchu-json_use_buf_pool
2018-07-28 11:01:11 +02:00
Przemyslaw Wegrzyn
2ce6c0cb44
Support for Entry data under nested JSON dictionary.
2018-06-19 14:31:57 +02:00
taylorchu
aa6766adfe
PERF: use buffer pool in json formatter
...
benchmark old ns/op new ns/op delta
BenchmarkLogrus-8 4163 4369 +4.95%
benchmark old allocs new allocs delta
BenchmarkLogrus-8 36 31 -13.89%
benchmark old bytes new bytes delta
BenchmarkLogrus-8 3027 2163 -28.54%
2018-05-15 16:46:37 -07:00
Marianne Feng
723dd3cd1f
changed prettyprinting to use spaces as opposed to /t
2018-03-20 18:20:51 -07:00
Lyra Naeseth
efab7f37b7
Have prefixFieldClashes respect the JSON FieldMap
...
Currently, it will fix clashes that don't exist and miss clashes that
do exist due to field remapping.
Fixes #708
2018-02-13 17:49:16 -08:00
Marianne Feng
639325f81a
added pretty print option for json logs
2017-11-06 16:19:47 -08:00
dmathieu
325575f181
fix golint issues in formatters
2017-07-26 14:26:30 +02:00
Simon Eskildsen
acfabf31db
logrus: use lower-case in comments and examples
2017-05-12 15:21:58 -04:00
Mattias Lundell
e3715134c9
Fixed small typo in example.
2017-05-05 14:18:10 +02:00
Andrew Burian
1d329ad042
Added option to disable JSON timestamp
...
Tests verify both the default and disabled case.
2016-11-21 10:09:59 -08:00
Ryan Canty
fcf4b8f229
Added comment documentation for FieldMap
2016-11-18 11:02:11 -08:00
Ryan Canty
d5ca23f998
Added FieldMap to reduce potential struct bloat
2016-11-17 15:16:46 -08:00
Ryan Canty
b2c6f8aa8b
Added resolve method to clean up Format
2016-11-17 11:28:41 -08:00
Ryan Canty
2173899f8f
Added customizable keys to JSON formatter
2016-11-16 21:56:00 -08:00
Simon Eskildsen
f1addc2972
formatter/json: fix possible race
2015-05-26 09:02:45 -04:00
Stephen J Day
e14471f8f2
Allow configuration of timestamp layout
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-04-06 12:18:40 -07:00
Anton Tiurin
98fd21de2c
[JSON] Use type-switch for error field
2015-03-10 19:04:57 +03:00
Simon Eskildsen
8287db7934
json_formatter: always cast errors to strings
...
Fixes #137
2015-03-09 15:15:08 +00:00
Antoine Grondin
2835e150d9
fixes #88
2014-12-09 21:57:50 -05:00
Antoine Grondin
c4cc714937
fix duplication of msg/time/level keys, add benchmarks.
2014-09-16 20:19:42 -04:00
Simon Eskildsen
2c0db7c868
formatter: drop internalFormatter
2014-07-26 22:22:39 -04:00
Simon Eskildsen
40069a98d6
entry: break out time, level and message from data
2014-07-26 21:34:29 -04:00
Simon Eskildsen
53371e3664
Add features from README
2014-03-10 19:22:08 -04:00