custlogger

package
v0.0.0-...-bd0fe52 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 License: GPL-3.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	DefaultOutput *io.PipeWriter
	// contains filtered or unexported fields
}

Logger type for logging info

func (*Logger) AddField

func (l *Logger) AddField(name string, value interface{}) *Logger

AddField add a field to the logger

func (*Logger) Error

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

func (*Logger) Errorf

func (l *Logger) Errorf(err error, format string, args ...interface{})

Errorf helpers to use Errorf

func (*Logger) Info

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

Info helpers to use Info

func (*Logger) Infof

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

Infof helpers to use Infof

func (*Logger) SetupInstanceLoggger

func (l *Logger) SetupInstanceLoggger(name string)

SetupInstanceLoggger has to be used when setupping logger when not testing

func (*Logger) SetupInstanceLogggerTest

func (l *Logger) SetupInstanceLogggerTest()

SetupInstanceLogggerTest has to be used when setupping logger when testing

func (*Logger) Trace

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

Trace helpers to use Trace

func (*Logger) Tracef

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

Tracef helpers to use Tracef

Jump to

Keyboard shortcuts

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