log

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiLogger

func ApiLogger() *log.Logger

ApiLogger returns a logger with the prefix "Api"

func CloseLogFile

func CloseLogFile() error

CloseLogFile closes the log file if one is in use

func DaemonLogger

func DaemonLogger() *log.Logger

DaemonLogger returns a logger with the prefix "Daemon"

func DefaultLogger

func DefaultLogger() *log.Logger

DefaultLogger returns a logger with no prefix

func NewFiber

func NewFiber() func(c *fiber.Ctx) error

NewFiber returns a new middleware for fiber used to log requests

func NewWish

func NewWish() wish.Middleware

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

func PkgLogger

func PkgLogger() *log.Logger

PkgLogger returns a logger with the prefix "Pkg"

func Setup

func Setup() error

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

func SshLogger

func SshLogger() *log.Logger

SshLogger returns a logger with the prefix "Ssh"

func TuiLogger

func TuiLogger() *log.Logger

TuiLogger returns a logger with the prefix "Tui"

Types

This section is empty.

Jump to

Keyboard shortcuts

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