zap icon indicating copy to clipboard operation
zap copied to clipboard

Blazing fast, structured, leveled logging in Go.

Results 158 zap issues
Sort by recently updated
recently updated
newest added

How can I get log level from zap logger? For logrus, this problem is solved in the following way: https://pkg.go.dev/github.com/sirupsen/logrus#Logger.GetLevel https://pkg.go.dev/github.com/sirupsen/logrus#Entry I need a similar feature from zap logger.

This refactors the implementation of the Log method to reuse it in the other level variants of the method (i.e. `Debug`, `Info`, etc.). To do this, a skip argument was...

**Is your feature request related to a problem? Please describe.** For log processing applications like sumologic, key value pair encoding is fastest. I want to raise an MR for keyvalue...

I'm using zap to write the audit log file, and I'm writing both to the console output and to a file in the aws filesystem called efs. I am writing...

Hey, guys. I have spent some time for looking for some examples which rotate log files according to the time, such as daily, hourly, or may be minutely. But unfortunately...

**Describe the bug** func (b *Buffer) Free() { b.pool.put(b) } To avoid memory problem, there should be a hard limit on the maximum buffer to place back in the sync.pool...

Both on mac and linux I get this error when doing `zapLogger.Sync()`: ``` sync /dev/stderr: inappropriate ioctl for device ``` Code: ``` zapLogger, err := zap.NewProduction() if err != nil...

This PR add new public funcs with signature `(msg string, fields ...FieldsFunc)`, where `FieldsFunc` is `type FieldsFunc func() []Field` - FDebug - FInfo - FWarn - FError - FDPanic -...

In Go 1.18, new read/write methods were added to `net.UDPConn` to take advantage of the new `netip` value types. I updated my code to use these new methods. But the...