log

package
v0.2.0-beta Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApiLogger = logrus.WithFields(logrus.Fields{"system": "api"})
View Source
var DaemonLogger = logrus.WithFields(logrus.Fields{"system": "daemon"})
View Source
var DefaultLogger = logrus.WithFields(logrus.Fields{"system": "default"})
View Source
var SSHLogger = logrus.WithFields(logrus.Fields{"system": "ssh"})

Functions

func GinLogger

func GinLogger() gin.HandlerFunc

func Setup

func Setup() error

Setup reads the config and configures log level and log output of all loggers

func WishMiddleware

func WishMiddleware() wish.Middleware

WishMiddleware returns a custom logging middleware that uses log.SSHLogger instead of the wish default logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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