zerolog-loki-hook

command module
v0.0.0-...-6d90e7f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 10 Imported by: 0

README

Zerolog Loki hook

⚠️If you want an actual solution to this problem I have created a library that does this :) It fixes a few issues this implementation has⚠️


Example for a hook that forwards log events from zerolog to you trusty local Loki instance.

For usage checkout the main.go file. To test the setup run

docker-compose up -d

When running the expample directly the loki instance is expected to be reachable at localhost:3100. You can overwrite this using the LOKI_ENDPOINT environment variable.

In case you need a deeper explanation see this blog post.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL