Closed 1366613 closed 6 months ago
I'm not sure what's wrong with this code.
package main import ( "fmt" "github.com/rs/zerolog" "github.com/rs/zerolog/diode" "os" "time" ) func main() { wr := diode.NewWriter(os.Stdout, 1000, 10*time.Millisecond, func(missed int) { fmt.Printf("Logger Dropped %d messages", missed) }) log := zerolog.New(wr).With().Caller().Timestamp().Logger() log.Fatal().Msg("test") time.Sleep(10 * time.Second) }
Fixed in #634
I'm not sure what's wrong with this code.