Skip to content

Hot Reload

Hot reloading is a feature that allows you to change your zerolog configuration without restarting the application.

Hot reload is enabled by default.

By default backend local API is used. No need to configure anything.

Backends

Multiple backends are available :

Disable hot reload

import (
    "github.com/azrod/zr"
    hr "github.com/azrod/zr/pkg/hotreload"
)

func main() {

    zr.Setup(
        zr.WithCustomHotReload(
            hr.WithNoHotReload(),
        ),
    )