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
2e3da1d5b5
Always place timestamp as first field for better log readability
2017-06-08 10:12:49 -07:00
Olivier Poitrey
2a829377cb
Rename warning field to warn in the output
2017-06-08 10:03:03 -07:00
Olivier Poitrey
3f6ca6688c
Fix Fatal and Panic not terminating to program
2017-06-06 10:23:34 -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
95ecd5ad27
Fix Log level
2017-06-05 13:03:55 -07:00
Olivier Poitrey
7e8bba7e7f
Fix typos
2017-06-05 13:03:55 -07:00
Olivier Poitrey
67803eb791
Add Nop constructor
2017-06-02 00:24:52 -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
6a6144a10b
Add http.Handler helpers (adapted from xlog)
2017-05-20 01:48:00 -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
a417fb1a8b
Fix sample template types
2017-05-19 09:48:01 -07:00
Olivier Poitrey
af9dd4ec23
Add SyncWriter utility type for non-thread-safe writers
2017-05-19 09:13:04 -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