logs

package
v0.40.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Global *logrus.Entry

Global is a global logger that can be used anywhere in the app, for _development purposes only_. I want to avoid global variables when possible, so if you want to log something that's printed when the -debug flag is set, you'll need to ensure the struct you're working with has a logger field ( and most of them do). Global is only available if the LAZYGIT_LOG_PATH environment variable is set.

Functions

func NewDevelopmentLogger added in v0.39.0

func NewDevelopmentLogger(logPath string) *logrus.Entry

func NewProductionLogger added in v0.39.0

func NewProductionLogger() *logrus.Entry

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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