Skip to content

Repository files navigation

zerozap

An implementation of zapcore.Core to feed all data to a zerolog logger.

Basic example

package main

import (
	"os"

	"github.com/rs/zerolog"
	"go.mau.fi/zerozap"
	"go.uber.org/zap"
)

func main() {
	mainLog := zerolog.New(os.Stdout)
	zapLogger := zap.New(zerozap.New(mainLog))
	zapLogger.Info("Hello, world!")
}

About

A zap core to convert output to zerolog

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages