nxcli: github.com/jaracil/nxcli/demos/go/sugar/log Index | Files

package log

import "github.com/jaracil/nxcli/demos/go/sugar/log"

Package log

Index

Package Files

log.go

Constants

const (
    PanicLevel uint8 = iota
    FatalLevel
    ErrorLevel
    WarnLevel
    InfoLevel
    DebugLevel
)

Variables

var Log *logrus.Logger

Singleton logrus logger object with custom format. Verbosity can be changed through SetLogLevel.

func SetLogLevel Uses

func SetLogLevel(l string) error

Sets log level to one of (debug, info, warn, error, fatal, panic)

Package log imports 2 packages (graph) and is imported by 2 packages. Updated 2016-07-21. Refresh now. Tools for package owners.