logging

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 2 Imported by: 4

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 added in v0.13.4

func GetProjectLogger() *logrus.Entry

func SetGlobalLogFormatter added in v0.15.0

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