logging

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

logging/logging.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogger

func InitLogger()

InitLogger initializes the logger.

func LogError

func LogError(err error, msg string)

func NewLogger

func NewLogger() zerolog.Logger

Types

type SentryHook

type SentryHook struct{}

SentryHook is a custom hook for zerolog to send logs to Sentry.

func (SentryHook) Run

func (h SentryHook) Run(e *zerolog.Event, level zerolog.Level, msg string)

Run implements the zerolog Hook interface.

Jump to

Keyboard shortcuts

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