log

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

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 is the internal logrus abstraction

func New

func New(app string, verbose bool) *Logger

New is a project global creator of logger

func (*Logger) Debug

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

Debug logs a message at level Debug.

func (*Logger) Debugf

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

Debugf logs a message at level Debug.

func (*Logger) Error

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

Error logs a message at level Error.

func (*Logger) Errorf

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

Errorf logs a message at level Error.

func (*Logger) Fatal

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

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

func (*Logger) Fatalf

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

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

func (*Logger) Info

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

Info logs a message at level Info.

func (*Logger) Infof

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

Infof logs a message at level Info.

func (*Logger) Warn

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

Warn logs a message at level Warn.

func (*Logger) Warnf

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

Warnf logs a message at level Warn.

Jump to

Keyboard shortcuts

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