log

package
v0.5.9-0...-ba7202b Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CallDepth is set to 1 in order to influence to reported line number of
	// the log message with 1 skipped stack frame of calling l.Output()
	CallDepth = 1
)

Variables

This section is empty.

Functions

func Crit

func Crit(msg string, ctx ...interface{})

Crit is a convenient alias for log.Crit with stats

func Debug

func Debug(msg string, ctx ...interface{})

Debug is a convenient alias for log.Debug with stats

func EnableBaseAddress

func EnableBaseAddress()

EnableBaseAddress enables the logging of the base address it is used for tests

func Error

func Error(msg string, ctx ...interface{})

Error is a convenient alias for log.Error with stats

func GetHandler

func GetHandler() l.Handler

GetHandler return the Handler assigned to root

func Info

func Info(msg string, ctx ...interface{})

Info is a convenient alias for log.Info with stats

func NewBaseAddressLogger

func NewBaseAddressLogger(baseAddr string, ctx ...interface{}) l.Logger

NewBaseAddressLogger creates a new logger with a `base` prefix

func Trace

func Trace(msg string, ctx ...interface{})

Trace is a convenient alias for log.Trace with stats

func Warn

func Warn(msg string, ctx ...interface{})

Warn is a convenient alias for log.Warn with stats

Types

type Logger

type Logger = l.Logger

Export go-ethereum/log interface so that swarm/log can be used with it interchangeably

func New

func New(ctx ...interface{}) Logger

New creates new swarm logger

Jump to

Keyboard shortcuts

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