logger

package
v1.0.119 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func GetLogger

func GetLogger() *logrus.Logger

so apparently The limitation arises due to the Go language's initialization order: Package-level variables are initialized before main() is called. Functions in main() execute after package-level initializations. something something , singleton

func Init

func Init()

Types

type CustomJSONFormatter

type CustomJSONFormatter struct {
	logrus.JSONFormatter
}

func (*CustomJSONFormatter) Format

func (f *CustomJSONFormatter) Format(entry *logrus.Entry) ([]byte, error)

type CustomLogrusWriter

type CustomLogrusWriter struct {
	io.Writer
}

func (*CustomLogrusWriter) Write

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

type CustomTextFormatter

type CustomTextFormatter struct {
	logrus.TextFormatter
}

Jump to

Keyboard shortcuts

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