GofileScrapper/misc/logger.go
2024-03-19 17:20:55 +01:00

11 lines
222 B
Go

package misc
import (
"github.com/rs/zerolog"
"os"
"time"
)
var Logger = zerolog.New(
zerolog.ConsoleWriter{Out: os.Stderr, TimeFormat: time.RFC3339},
).Level(zerolog.TraceLevel).With().Timestamp().Caller().Logger()