logging

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddField

func AddField(e *logrus.Entry, name string, value interface{}) *logrus.Entry

AddField add a field to an existing logrus.Entry

func AddFields

func AddFields(e *logrus.Entry, fields map[string]interface{}) *logrus.Entry

AddFields adds multiple fields to an existing logrus.Entry

func Debug

func Debug()

Debug - Set Log Level to Debug

func DefaultOptions

func DefaultOptions() []bundles.Option

DefaultOptions is a set options recommended to use by default.

func Disable

func Disable()

Disable sends all logging output to the bit bucket.

func Error

func Error()

Error - Set Log Level to Error

func Fatal

func Fatal()

Fatal - Set Log Level to Fatal

func GetLogger

func GetLogger(prefix string) *logrus.Entry

GetLogger returns a configured logger instance

func Info

func Info()

Info - Set Log Level to Info

func Panic

func Panic()

Panic - Set Log Level to Panic

func Trace

func Trace()

Trace - Set Log Level to Trace

func Warn

func Warn()

Warn - Set Log Level to Warn

Types

This section is empty.

Jump to

Keyboard shortcuts

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