log

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CLI_DSN = "https://a93da0b87a654895a96ab3a1e4101792@o170438.ingest.sentry.io/4503898727907328"

Functions

func Debug

func Debug() *zerolog.Event

func Error

func Error() *zerolog.Event

func Fatal

func Fatal() *zerolog.Event

func Info

func Info() *zerolog.Event

func NewReportWriter added in v0.12.0

func NewReportWriter() io.Writer

func OnReportBytes added in v0.12.3

func OnReportBytes(handler func(s string))

func OnReportEvent added in v0.12.3

func OnReportEvent(handler func(*ReportEvent))

func Panic

func Panic() *zerolog.Event

func SentryCaptureArgs added in v0.12.0

func SentryCaptureArgs()

func SentryCaptureError added in v0.12.0

func SentryCaptureError(err error)

func SentryCaptureMessage added in v0.12.0

func SentryCaptureMessage(message string)

func SentryFlush added in v0.12.0

func SentryFlush()

func SentryInit added in v0.12.0

func SentryInit(dsn string) error

func SentryRecover added in v0.12.0

func SentryRecover()

func Topic added in v0.12.0

func Topic(topic string) zerolog.Logger

func Warn

func Warn() *zerolog.Event

Types

type ReportEvent added in v0.12.0

type ReportEvent struct {
	Level     string    `json:"level"`
	Message   string    `json:"message"`
	Timestamp time.Time `json:"timestamp"`
	Error     string    `json:"error,omitempty"`
}

type ReportWriter added in v0.12.0

type ReportWriter struct {
}

func (*ReportWriter) Write added in v0.12.0

func (w *ReportWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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