logs

package
v0.0.0-...-b4442d7 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: GPL-3.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

Debug logs a message at level Debug on the standard logger.

func Error

func Error(args ...interface{})

Error logs a message at level Error on the standard logger.

func Fatal

func Fatal(args ...interface{})

Fatal logs a message at level Fatal on the standard logger then the process will exit with status set to 1.

func Info

func Info(args ...interface{})

Info logs a message at level Info on the standard logger.

func Panic

func Panic(args ...interface{})

Panic logs a message at level Panic on the standard logger.

func Print

func Print(args ...interface{})

Print logs a message at level Info on the standard logger.

func SetLevel

func SetLevel(level logrus.Level)

func Trace

func Trace(args ...interface{})

func Warn

func Warn(args ...interface{})

Warn logs a message at level Warn on the standard logger.

func Warning

func Warning(args ...interface{})

Warning logs a message at level Warn on the standard logger.

Types

type ILogger

type ILogger interface {
	SetLevel(level uint32)
	Trace(args ...interface{})
	Debug(args ...interface{})
	Print(args ...interface{})
	Info(args ...interface{})
	Warn(args ...interface{})
	Warning(args ...interface{})
	Error(args ...interface{})
	Panic(args ...interface{})
	Fatal(args ...interface{})
}

type Provider

type Provider struct {
}

func (*Provider) Debug

func (p *Provider) Debug(args ...interface{})

Debug logs a message at level Debug on the standard logger.

func (*Provider) Error

func (p *Provider) Error(args ...interface{})

Error logs a message at level Error on the standard logger.

func (*Provider) Fatal

func (p *Provider) Fatal(args ...interface{})

Fatal logs a message at level Fatal on the standard logger then the process will exit with status set to 1.

func (*Provider) Info

func (p *Provider) Info(args ...interface{})

Info logs a message at level Info on the standard logger.

func (*Provider) Panic

func (p *Provider) Panic(args ...interface{})

Panic logs a message at level Panic on the standard logger.

func (*Provider) Print

func (p *Provider) Print(args ...interface{})

Print logs a message at level Info on the standard logger.

func (*Provider) SetLevel

func (p *Provider) SetLevel(level uint32)

func (*Provider) Trace

func (p *Provider) Trace(args ...interface{})

func (*Provider) Warn

func (p *Provider) Warn(args ...interface{})

Warn logs a message at level Warn on the standard logger.

func (*Provider) Warning

func (p *Provider) Warning(args ...interface{})

Warning logs a message at level Warn on the standard logger.

Jump to

Keyboard shortcuts

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