std

package
v0.0.0-...-e31961d Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

README

Standard Go Logger

Simple wrapper for wrapper standard go logger implementation

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

Logger of go standard logger

func New

func New(config *logger.Config) (*Logger, error)

New standard logger

func (*Logger) Debug

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

Debug log using standard logger

func (*Logger) Debugf

func (l *Logger) Debugf(format string, v ...interface{})

Debugf log using standard logger

func (*Logger) Debugln

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

Debugln log using standard logger

func (*Logger) Debugw

func (l *Logger) Debugw(message string, fields logger.KV)

Debugw log using standard logger

func (*Logger) Error

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

Error log using standard logger

func (*Logger) Errorf

func (l *Logger) Errorf(format string, v ...interface{})

Errorf log using standard logger

func (*Logger) Errorln

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

Errorln log using standard logger

func (*Logger) Errorw

func (l *Logger) Errorw(message string, fields logger.KV)

Errorw log using standard logger

func (*Logger) Fatal

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

Fatal log using standard logger

func (*Logger) Fatalf

func (l *Logger) Fatalf(format string, v ...interface{})

Fatalf log using standard logger

func (*Logger) Fatalln

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

Fatalln log using standard logger

func (*Logger) Fatalw

func (l *Logger) Fatalw(message string, fields logger.KV)

Fatalw log using standard logger

func (*Logger) Info

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

Info log using standard logger

func (*Logger) Infof

func (l *Logger) Infof(format string, v ...interface{})

Infof log using standard logger

func (*Logger) Infoln

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

Infoln log using standard logger

func (*Logger) Infow

func (l *Logger) Infow(message string, fields logger.KV)

Infow log using standard logger

func (*Logger) SetConfig

func (l *Logger) SetConfig(config *logger.Config) error

SetConfig to reset logger configuration

func (*Logger) SetLevel

func (l *Logger) SetLevel(level logger.Level) error

SetLevel to set log level

func (*Logger) Warn

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

Warn log using standard logger

func (*Logger) Warnf

func (l *Logger) Warnf(format string, v ...interface{})

Warnf log using standard logger

func (*Logger) Warnln

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

Warnln log using standard logger

func (*Logger) Warnw

func (l *Logger) Warnw(message string, fields logger.KV)

Warnw log using standard logger

Jump to

Keyboard shortcuts

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