Tyler Cosgrove
fe931004ff
Make RemoteAddrHandler copy the RemoteAddr untouched ( #347 )
...
Do not remove the port part of the RemoteAddr and accept values with no ports.
2021-08-19 20:46:16 +02:00
Jack Christensen
0f923d7926
Fix: mutil.fancyWriter.ReadFrom records number of bytes written ( #256 )
...
Without this hlog.AccessHnalder reports a size written of 0 when the
ReadFrom method is used. This is easily visible when using
http.FileServer where all files are served with a logged size of 0.
2021-04-22 03:22:35 +02:00
Dan Gillis
7a3aa8746f
Allow setting context using idKey. Assist for issue #293 . ( #296 )
2021-03-02 11:01:32 +01:00
Blake Williams
fe394c81ce
Remove dependency on Goji ( #223 )
2020-04-12 22:02:06 -07:00
aca
43d05e8ddf
hlog: add custom header handler ( #197 )
2019-11-04 10:14:00 -08:00
jayven
8aa660046f
Add hlog.IDFromCtx
2018-09-16 19:00:10 -07:00
Ravi Raju
ddfae1b613
Binary format support ( #37 )
...
Adds support for binary logging (with cbor encoding) in addition to JSON. Use the binary_log compile tag to enable the feature.
2018-03-28 11:49:41 -07:00
Olivier Poitrey
9a92fd2536
Fix typoes
2018-02-10 18:57:53 -08:00
Olivier Poitrey
fcbdf23e9e
Use new hook internally to handle timestamp in context
2018-02-07 13:31:00 -08:00
Olivier Poitrey
e26050b2a3
Improve hlog handlers performance by switching to pointer logger
...
Update request logger's context thru its pointer in order to avoid
multiple copies/allocations.
2017-08-29 22:53:32 -07:00
Olivier Poitrey
eed4c2b94d
Add access log handler
2017-07-10 03:45:23 -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
19a9a81cd2
Add some more doc
2017-05-20 02:22:57 -07:00
Olivier Poitrey
6a6144a10b
Add http.Handler helpers (adapted from xlog)
2017-05-20 01:48:00 -07:00