Skip to content

Getting Started

Installation

    go get -u github.com/azrod/zr

Basic usage

    package main

    import (
        "github.com/azrod/zr"
        "github.com/rs/zerolog/log"

    )

    func main() {
        zr.Setup()

        log.Info().Msg("Hello world")
    }

Output

{"level":"info","time":"2022-06-04T14:36:24+02:00","caller":"basic.go:15","message":"hello world"}

Examples

A lot of examples are available in the examples directory.