log

package
v0.0.0-...-c5339c6 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLevelLogger

func NewLevelLogger(level levels.LogLevel, toAttachLogger distillog.Logger) distillog.Logger

NewLevelLogger creates a new logger from the defined level and distillog.Logger

Types

type LevelLogger

type LevelLogger struct {
	// contains filtered or unexported fields
}

LevelLogger wrapper for distillog.Log that will print messages at configured level. Maybe be created with any logger that supports the distillog.Logger interface

func (LevelLogger) Close

func (ll LevelLogger) Close() error

Close calls internal distillog.Logger.Close

func (LevelLogger) Debugf

func (ll LevelLogger) Debugf(format string, v ...interface{})

Debugf calls internal distillog.Logger.Debugf if enabled

func (LevelLogger) Debugln

func (ll LevelLogger) Debugln(v ...interface{})

Debugln calls internal distillog.Logger.Debugln if enabled

func (LevelLogger) Errorf

func (ll LevelLogger) Errorf(format string, v ...interface{})

Errorf calls internal distillog.Logger.Errorf if enabled

func (LevelLogger) Errorln

func (ll LevelLogger) Errorln(v ...interface{})

Errorln calls internal distillog.Logger.Errorln if enabled

func (LevelLogger) Infof

func (ll LevelLogger) Infof(format string, v ...interface{})

Infof calls internal distillog.Logger.Infof if enabled

func (LevelLogger) Infoln

func (ll LevelLogger) Infoln(v ...interface{})

Infoln calls internal distillog.Logger.Infoln if enabled

func (LevelLogger) Warningf

func (ll LevelLogger) Warningf(format string, v ...interface{})

Warningf calls internal distillog.Logger.Warningf if enabled

func (LevelLogger) Warningln

func (ll LevelLogger) Warningln(v ...interface{})

Warningln calls internal distillog.Logger.Warningln if enabled

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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