cmdlogger

package
v3.1.12+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	hclog.Logger
	Level hclog.Level
	// contains filtered or unexported fields
}

Logger the logger object

func NewLogger

func NewLogger(cmd *cobra.Command) Logger

NewLogger Creates a new Logger with default values

func NewLoggerJSON

func NewLoggerJSON(cmd *cobra.Command, logLevel string) Logger

func (Logger) AddWriter

func (s Logger) AddWriter(writer io.Writer) Logger

AddWriter Appends a writer to the Logger

Jump to

Keyboard shortcuts

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