logger

package
v2.8.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger = logrus.New()

Functions

func GetLoggingLevelByInspectingParent

func GetLoggingLevelByInspectingParent() (logrus.Level, error)

func SetLevel

func SetLevel(level logrus.Level)

SetLevel sets the logging level

func SetupLogging

func SetupLogging(options Options)

SetupLogging configures the logger based on user input and parent process configuration (looks for `ssh -v`)

Types

type Options

type Options struct {
	Level         logrus.Level
	InspectParent bool
}

Options allows to customize logger behavior

Jump to

Keyboard shortcuts

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