logger

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: MIT Imports: 9 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

This section is empty.

Jump to

Keyboard shortcuts

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