logger

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package logger contains basic logging logic of the application

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHook added in v0.4.1

func AddHook(hook logrus.Hook)

func InitFromConfig

func InitFromConfig()

InitFromConfig parsed using cmd.Execute()

func SetupLogger

func SetupLogger(section string) (l *logrus.Entry)

SetupLogger for a section will add the section name to logger's field

func SetupLoggerOf

func SetupLoggerOf(parent logrus.Entry, section string) *logrus.Entry

SetupLoggerOf a parent log entry

Types

This section is empty.

Directories

Path Synopsis
Package mocklogger provides a logrus.Logger that does not log into stdout or stderr.
Package mocklogger provides a logrus.Logger that does not log into stdout or stderr.

Jump to

Keyboard shortcuts

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