Category "go-zap"

Correctly log protobuf messages as unescaped JSON with zap logger

I have a Go project where I'm using Zap structured logging to log the contents of structs. That's how I initialise the logger: zapLog, err := zap.NewProductionC

How can I release the lock on log file in code?

InitExecLog('test-log.log') // exec testing ... // After completed, how can I release the lock on file 'test-log.log'? func InitExecLog(logPath string) { co