1
0

Switch to zerolog

This commit is contained in:
2023-03-18 21:30:07 +00:00
parent feb1ab7d37
commit 8bffea0aea
10 changed files with 122 additions and 76 deletions

View File

@ -6,10 +6,13 @@ package main
import (
"fmt"
"log"
"math/rand"
"os"
"time"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"github.com/alecthomas/kong"
"code.dumpstack.io/tools/out-of-tree/config"
@ -46,7 +49,7 @@ func (v VersionFlag) BeforeApply(app *kong.Kong, vars kong.Vars) error {
}
func main() {
log.SetFlags(log.Lshortfile)
log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stderr})
rand.Seed(time.Now().UnixNano())