Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ApiLogger = log.WithFields(log.Fields{"system": "api"})
View Source
var CliLogger = log.WithFields(log.Fields{"system": "cli"})
View Source
var DaemonLogger = log.WithFields(log.Fields{"system": "daemon"})
View Source
var DefaultLogger = log.WithFields(log.Fields{"system": "default"})
View Source
var SSHLogger = log.WithFields(log.Fields{"system": "ssh"})
Functions ¶
func CloseLogFile ¶
func CloseLogFile() error
func GinMiddleware ¶
func GinMiddleware() gin.HandlerFunc
GinMiddleware returns a custom logging middleware that uses log.ApiLogger instead of the gin default logger
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.
Click to show internal directories.
Click to hide internal directories.