log icon indicating copy to clipboard operation
log copied to clipboard

Structured logging package for Go.

Results 50 log issues
Sort by recently updated
recently updated
newest added

The x/text package before 0.3.3 for Go has a vulnerability in encoding/unicode that could lead to the UTF-16 decoder entering an infinite loop, causing the program to crash or run...

Hey @tj! I'm loving Apex's `log` module so far, and figured I'd take a crack at adding a method to allow `.Trace()` and `.Stop()` to log non-errors at a configurable...

I think nanoseconds is far too much granularity for the average use-case, I've never had a problem with millisecond resolution, but it's a breaking change.

The supplier will only be invoked if the log line's level is met. Otherwise we avoid string creation. This is to optimize applications that may want to minimize extra string...

https://play.golang.org/p/89gZ-Izsp_J Emits three lines: 1. {"fields":{"app":"myapp","env":"prod"},"level":"info","timestamp":"2009-11-10T23:00:00Z","message":"heavy operation"} 2. Sleeping for 81ms 3. {"fields":{"app":"myapp","duration":81,"env":"prod"},"level":"info","timestamp":"2009-11-10T23:00:00.081Z","message":"heavy operation"} I didn't expect line number one! It doesn't have any value, does it?

First of all, thanks for creating this package.. i really love the simplicity of this code base. I could read the whole codebase and make sense out of it in...

It should be possible to explicitly set the level on Trace. (Imagine Info is turned off and a failure mode where you really want to know the time it took...

Hi folks, I'd like to add a field to my logging context after I have some relevant information, I've supplied the peudocode of what I'd like to do. Looking over...