logging

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package logging contains helper functions for setting up a CLI wide logger that can be used to log output at various levels.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger

func GetLogger(name string, version string) *logrus.Entry

Create a new logger with the given name

func GetProjectLogger

func GetProjectLogger() *logrus.Entry

func SetGlobalLogFormatter

func SetGlobalLogFormatter(formatter string)

Set the log format. Note: this ONLY affects loggers created using the GetLogger function AFTER this function has been called. Therefore, you need to call this as early in the life of your CLI app as possible!

func SetGlobalLogLevel

func SetGlobalLogLevel(level logrus.Level)

Set the log level. Note: this ONLY affects loggers created using the GetLogger function AFTER this function has been called. Therefore, you need to call this as early in the life of your CLI app as possible!

Types

This section is empty.

Jump to

Keyboard shortcuts

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