Skip to content

Instantly share code, notes, and snippets.

@panta
panta / logging.go
Last active October 28, 2024 18:56
zerolog with file log rotation (lumberjack) and console output
package logging
import (
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"gopkg.in/natefinch/lumberjack.v2"
"os"
"path"
"io"
)