Skip to content

Instantly share code, notes, and snippets.

@panta
panta / logging.go
Last active May 27, 2024 16:37
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"
)