log15w

package
v0.0.0-...-6f8fa1e Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package log15w provides a wrapper (w) to github.com/inconshreveable/log15.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log15

type Log15 struct {
	Level log15.Lvl
	Wrap  log15.Logger
}

func NewLog15

func NewLog15(lvl log15.Lvl, h log15.Handler, ctx ...interface{}) *Log15

NewLog15 creates a new https://godoc.org/github.com/inconshreveable/log15 logger.

func (*Log15) Debug

func (l *Log15) Debug(msg string, fields ...log.Field)

Debug outputs information for developers.

func (*Log15) Fatal

func (l *Log15) Fatal(msg string, fields ...log.Field)

Fatal exists the app with logging the error

func (*Log15) Info

func (l *Log15) Info(msg string, fields ...log.Field)

Info outputs information for users of the app

func (*Log15) IsDebug

func (l *Log15) IsDebug() bool

IsDebug returns true if Debug level is enabled

func (*Log15) IsInfo

func (l *Log15) IsInfo() bool

IsInfo returns true if Info level is enabled

func (*Log15) New

func (l *Log15) New(ctx ...interface{}) log.Logger

New creates a new logger with the same level as its parent.

func (*Log15) SetLevel

func (l *Log15) SetLevel(lvl int)

SetLevel sets the log level. Panics on incorrect value

Jump to

Keyboard shortcuts

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