i6du
77a1695358
add send function for convenience ( #164 )
2019-07-03 23:16:03 -07:00
Vasiliy Faronov
1a2c7daec4
Fix misleading text about duplicate keys in JSON ( #141 )
...
Per RFC 8259 Section 4, behavior on duplicate keys is unspecified.
Fixes #140 .
2019-05-25 18:51:33 -07:00
Olivier Poitrey
3e85c4b21c
Add a new time format for UNIX timestamp in milliseconds
2019-04-19 15:48:31 -07:00
Olivier Poitrey
8747b7b3a5
Add ErrorHandler global to allow handling of write errors
2018-11-20 10:56:21 -08:00
Karel Minarik
96f91bb4f5
Refactored zerolog.ConsoleWriter to allow customization ( #92 )
...
* Added a simple benchmarking test for the ConsoleWriter
* Refactored `zerolog.ConsoleWriter` to allow customization
Closes #84
2018-11-05 02:15:13 -08:00
Thiago Caiubi
624b3116d8
Fix sub-logger by context example ( #106 )
...
Not quite sure but looks like the example is using the wrong API.
2018-09-18 07:57:53 -07:00
Olivier Poitrey
785a567b10
Add a mention to logbench
2018-09-18 02:18:32 -07:00
Duncan Hall
b6f076edc8
Add note for default writing to os.Stderr ( #97 )
2018-08-31 09:46:32 -07:00
Marcelo Aymone
85255a5e26
Fix typo on documentation ( #94 )
2018-08-14 19:23:11 -07:00
Josh Rendek
1a88fbfdd0
Update readme at example for Caller() ( #76 )
...
* Update readme at example for Caller()
2018-06-03 22:57:37 -07:00
Pichugin Dmitry
dabc72c15b
fix README ( #74 )
2018-05-31 10:33:44 -07:00
Rafael Passos
c19f1e5eed
Diode module Documentation update ( #71 )
...
* Updated Diode example to match new style
* DOC: changed w to wr in assigment to reduce ambiguity
2018-05-25 14:45:33 -07:00
Olivier Poitrey
b5207c012d
Fix type in README ( fix #62 )
2018-05-12 22:12:35 -07:00
Olivier Poitrey
89162918d0
Add grpc-zerolog reference ( fix #58 )
2018-04-26 13:41:11 -07:00
Dan Gillis
711d95f5f1
Some new readability updates ( #54 )
2018-04-18 20:29:59 -07:00
Ravi Raju
2ccfab3e07
Support for adding IP Address/Prefix + stream based decoder ( #49 )
...
* added IPAddr, IPPrefix and stream based cbor decoder
* Update README with cbor decoder tool info
* Update README in cbor with comparison data
2018-04-03 23:07:18 +02:00
Olivier Poitrey
05eafee0eb
Update README with instruction about binary encoding
2018-03-28 11:59:26 -07:00
Olivier Poitrey
3ab376bc30
Add "Who uses zerolog" wiki page link
2018-03-25 22:34:03 -07:00
Kai Ren
b62d797a8d
Mention fields duplication caveat in documentation ( #41 )
2018-03-08 07:41:28 -08:00
Olivier Poitrey
8c1c6a0cd7
Add diode.Writer, a thread-safe, lock-free, non-blocking writer wrapper
2018-02-20 02:33:26 -08:00
Dan Gillis
8eb285b62b
Updates to README.md to help with readability ( #32 )
...
* Added missed >m< in github.com
* Added backquotes to denote "code" where appropriate
* Cleanup based on feedback
* Added three examples from README
* Removed Output for 3 examples
* Updated Setting Global Log Level section w/ flags
* Removed unnecessary blank lines
* Moved flags from init into main
* Update log_example_test.go
* Cosmetic change based on Olivier's feedback
* Pushed back to original
* New Examples for Log package
* Removed extra spaces
* Reorganized file and added examples
2018-02-08 21:00:09 -08:00
zy
1cc67e6325
fix: performance link to invalid section in README.md ( #30 )
...
- No performance section in README.md, change link to performance to benchmarks
2018-01-04 11:19:48 -08:00
Rodrigo Coelho
c3d02683c7
Add hook support ( #24 )
2017-12-01 10:52:37 -07:00
Olivier Poitrey
8c682b3b12
Add Print and Printf top level methods
2017-09-01 19:59:48 -07:00
Olivier Poitrey
96c2125038
Update readme to reference Mário Freitas' benchmarks
2017-09-01 19:45:46 -07:00
Olivier Poitrey
560e8848f1
Remove the SampleFieldName global
2017-08-29 10:35:43 -07:00
Olivier Poitrey
9e5c06cf0e
Add more advanced sampling modes
2017-08-28 23:30:54 -07:00
Olivier Poitrey
2ed2f2c974
Fix pretty logging and add a screenshot to the README
2017-08-05 20:45:41 -07:00
Olivier Poitrey
a83efb6080
Add a ConsoleWriter to output pretty log on the console during dev
2017-08-05 19:47:55 -07:00
Olivier Poitrey
eed4c2b94d
Add access log handler
2017-07-10 03:45:23 -07:00
Olivier Poitrey
447d0fc7f5
Optimize JSON encoding even further
...
Last optimization was for JSON string with no character to encode. This
version focuses on strings with some chars to encode, trying to apply
the same trick for substrings that do not need encoding.
benchmark old ns/op new ns/op delta
.../NoEncoding-8 60.2 51.3 -14.78%
.../EncodingFirst-8 140 116 -17.14%
.../EncodingMiddle-8 112 86.4 -22.86%
.../EncodingLast-8 62.8 61.1 -2.71%
.../MultiBytesFirst-8 164 129 -21.34%
.../MultiBytesMiddle-8 133 96.9 -27.14%
.../MultiBytesLast-8 81.9 73.5 -10.26%
2017-06-25 15:17:49 -07:00
Olivier Poitrey
b42b460ec6
Update bench
2017-06-23 20:37:30 -07:00
Olivier Poitrey
6bcd15ecf0
Add support for zerolog as an output for stdlib logger
2017-06-01 23:17:28 -07:00
Olivier Poitrey
bf4b44614c
Simplify Dur method usage.
2017-05-20 21:08:42 -07:00
Olivier Poitrey
6b56a13287
Add a mention about humanlog
2017-05-20 19:50:05 -07:00
Joey Geiger
6fbe7ae422
Fix Typos in Readme ( #4 )
...
The word referrer was also incorrect, but it may need a code change.
2017-05-20 19:28:55 -07:00
Will Huxtable
2af75c68e6
Fix URL
...
The link to alice was invalid, just missing the protocol.
2017-05-20 11:32:00 +01:00
Olivier Poitrey
19a9a81cd2
Add some more doc
2017-05-20 02:22:57 -07:00
Olivier Poitrey
e1be995274
Refactor README
2017-05-20 02:03:07 -07:00
Olivier Poitrey
6a6144a10b
Add http.Handler helpers (adapted from xlog)
2017-05-20 01:48:00 -07:00
Olivier Poitrey
3f54be8716
Improve context.Context logging
2017-05-20 00:22:37 -07:00
Olivier Poitrey
06b7e1c922
Add zap's comparison benchmark
2017-05-19 20:14:13 -07:00
Olivier Poitrey
d0cfcbbafe
Write directly into a single shared buffer per event for even better perf
2017-05-19 19:45:46 -07:00
Olivier Poitrey
77726764ed
Optimize disabled logging
2017-05-19 09:56:31 -07:00
Olivier Poitrey
5ebf00efab
Add dict support
2017-05-18 00:10:45 -07:00
Olivier Poitrey
5409743185
Edit README
2017-05-16 23:06:42 -07:00
Olivier Poitrey
15cae79f78
Fix typo
2017-05-16 22:58:33 -07:00
Olivier Poitrey
36c85e7f5e
Add output example for sampled messages
2017-05-16 22:43:07 -07:00
Olivier Poitrey
d0a1bd7e3e
Make GlobalLevel and DisableSampling thread safe
2017-05-15 11:18:42 -07:00
Olivier Poitrey
7f302b00ec
Initial commit
2017-05-13 16:22:35 -07:00