Giovanni Bajo
9ee98f91c4
Remove allocations while logging an Array of Objects. ( #38 )
2018-02-13 11:18:01 -08:00
Olivier Poitrey
56a970de51
Add RawJSON field type
2018-02-12 16:05:27 -08:00
Olivier Poitrey
27e0a22cbc
Add the ability to capture the logger caller file and line number
...
Fixes #34 , #22
2018-02-07 13:54:26 -08:00
Olivier Poitrey
fcbdf23e9e
Use new hook internally to handle timestamp in context
2018-02-07 13:31:00 -08:00
Rodrigo Coelho
c3d02683c7
Add hook support ( #24 )
2017-12-01 10:52:37 -07:00
Giovanni Bajo
89e128fdc1
Speed up operations when logging is disabled. ( #18 )
...
Low-level optimizations to help the compiler generate better code
when logging is disabled. Measured improvement is ~30% on amd64
(from 21 ns/op to 16 ns/op).
2017-11-05 05:22:20 -08:00
Olivier Poitrey
89ff8dbc5f
Small comment fix
2017-07-26 23:42:12 -07:00
Olivier Poitrey
614d88bbf8
Add support for typed array.
2017-07-26 00:30:03 -07:00
Olivier Poitrey
6cdd9977c4
Refactor JSON encoding code
2017-07-25 22:05:32 -07:00
Olivier Poitrey
fdbdb09630
Add support for custom object marshaling
2017-07-25 18:41:05 -07:00
Olivier Poitrey
2aa3c3ae4f
Add some array types support
2017-07-25 12:50:35 -07:00
Olivier Poitrey
7af653895b
Add utility functions WithLevel and Fields
...
Add some utility functions to ease migration from other logger API.
2017-07-10 02:58:58 -07:00
Olivier Poitrey
72d41dedeb
Add []byte fields support
...
Add efficient []byte field support with no string conversion.
2017-07-01 12:48:32 -07:00
Olivier Poitrey
9889521807
Add TimeDiff event method
2017-06-06 22:10:36 -07:00
Olivier Poitrey
46cd35d1f2
Remove error returned by Msg and Msgf
...
When error happen, there is nothing the caller can really do and it is
not practicle to handle logging errors. Print an error on the standard
error instead.
2017-06-06 10:10:31 -07:00
Olivier Poitrey
7e8bba7e7f
Fix typos
2017-06-05 13:03:55 -07:00
Olivier Poitrey
49d553c9b8
Add AnErr field type
2017-06-02 00:56:14 -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
3f54be8716
Improve context.Context logging
2017-05-20 00:22:37 -07:00
Olivier Poitrey
4f55c107b9
Fix typo
2017-05-19 22:48:00 -07:00
Olivier Poitrey
195fd3d7c6
Add support for the duration field
2017-05-19 22:43:10 -07:00
Olivier Poitrey
76d3c39327
Rename Object to Interface
2017-05-19 22:25:37 -07:00
Olivier Poitrey
6925dbdff1
Add support for object reflection field
2017-05-19 19:56:18 -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
5ebf00efab
Add dict support
2017-05-18 00:10:45 -07:00
Olivier Poitrey
5ec57ffb50
Add doc to all field types
2017-05-16 21:56:38 -07:00
Olivier Poitrey
7f302b00ec
Initial commit
2017-05-13 16:22:35 -07:00