import (
"errors"
stdlog "log"
"os"
"github.com/hentaiOS-Infrastructure/zerolog-sentry"
"github.com/rs/zerolog"
)
func main() {
w, err := zlogsentry.New("http://e35657dcf4fb4d7c98a1c0b8a9125088@localhost:9000/2", zlogsentry.WithEnvironment("dev"), zlogsentry.WithRelease("1.0.0"))
if err != nil {
stdlog.Fatal(err)
}
defer w.Close()
multi := zerolog.MultiLevelWriter(os.Stdout, w)
logger := zerolog.New(multi).With().Timestamp().Logger()
logger.Error().Err(errors.New("dial timeout")).Msg("test message")
}
forked from archdx/zerolog-sentry
-
Notifications
You must be signed in to change notification settings - Fork 0
Sentry writer for zerolog logger
License
hentaiOS-Infrastructure/zerolog-sentry
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Sentry writer for zerolog logger
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Go 98.9%
- Makefile 1.1%