Back to godoc.org

Package logbridge

v1.0.0-beta3
Latest Go to latest

The latest major version is .

Published: Aug 26, 2020 | License: Apache-2.0 | Module: github.com/hyperledger/fabric-sdk-go

Index

Constants

const (
	CRITICAL logging.Level = iota
	ERROR
	WARNING
	INFO
	DEBUG
)

Log levels (from fabric-sdk-go/pkg/logging/level.go).

type Logger

type Logger struct {
	*logging.Logger
	// contains filtered or unexported fields
}

Logger bridges the SDK's logger struct

func MustGetLogger

func MustGetLogger(module string) *Logger

MustGetLogger bridges calls the Go SDK NewLogger

func (*Logger) IsEnabledFor

func (l *Logger) IsEnabledFor(level logging.Level) bool

IsEnabledFor bridges calls to the Go SDK logger's IsEnabledFor.

func (*Logger) Warning

func (l *Logger) Warning(args ...interface{})

Warning bridges calls to the Go SDK logger's Warn.

func (*Logger) Warningf

func (l *Logger) Warningf(format string, args ...interface{})

Warningf bridges calls to the Go SDK logger's Warnf.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier