log

package
v0.12.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CLI_DSN = "https://a93da0b87a654895a96ab3a1e4101792@o170438.ingest.sentry.io/4503898727907328"
View Source
var Debug = zlog.Debug
View Source
var Error = zlog.Error
View Source
var Fatal = zlog.Fatal
View Source
var Info = zlog.Info
View Source
var Panic = zlog.Panic
View Source
var Warn = zlog.Warn

Functions

func NewReportWriter added in v0.12.0

func NewReportWriter(level string) io.Writer

func OnReport added in v0.6.0

func OnReport(handler func(*ReportEvent))

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

Types

type ReportEvent added in v0.12.0

type ReportEvent struct {
	Level   string    `json:"level"`
	Topic   string    `json:"topic"`
	Message string    `json:"message"`
	Time    time.Time `json:"time"`
}

type ReportWriter added in v0.12.0

type ReportWriter struct {
	Level string
}

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