Category "go-zap"

How to send logs to a different location : Kubernetes

So I want to develop multiple flavors of log one for generic use and other for performing a specific operation I want to separate those logs by storing them in

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