log

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 11 Imported by: 0

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.

Jump to

Keyboard shortcuts

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