Skip to content

coffeemakingtoaster/zerolog-loki-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zerolog Loki hook

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published