logger

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRequestLogger added in v0.4.0

func GetRequestLogger(ctx *fiber.Ctx) log.Ext1FieldLogger

GetRequestLogger returns a logrus.Ext1FieldLogger that always includes a request's id

func GetSSHRequestLogger added in v0.4.0

func GetSSHRequestLogger(sessionId string) log.Ext1FieldLogger

GetSSHRequestLogger returns a logrus.Ext1FieldLogger that always includes an ssh request's id

func Init

func Init()

Init initializes the logger

func MustGetAccessLogger

func MustGetAccessLogger() io.Writer

MustGetAccessLogger open the server access logger; on failure the program exits

func MustUpdateAccessLogger

func MustUpdateAccessLogger()

MustUpdateAccessLogger updates the writer of the access logger

func SetOutput

func SetOutput()

SetOutput sets the logging output

Types

type SmartLogger added in v0.4.0

type SmartLogger struct {
	*log.Entry
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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