logger

package
v0.0.0-...-87de96b Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

Debug Log

func Debugf

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

Debugf Log

func Error

func Error(args ...interface{})

Error Log

func Errorf

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

Errorf Log

func Errorfn

func Errorfn(fn string, err error)

Errorfn Log errors with format

func Fatal

func Fatal(args ...interface{})

Fatal Log

func Fatalf

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

Fatalf Log

func Info

func Info(args ...interface{})

Info Log

func Infof

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

Infof Log

func InvalidArg

func InvalidArg(argumentName string)

InvalidArg is a standard error message

func InvalidArgValue

func InvalidArgValue(argumentName string, argumentValue string)

InvalidArgValue is a standard error message

func MissingArg

func MissingArg(argumentName string)

MissingArg is a standard error message

func Panic

func Panic(args ...interface{})

Panic Log

func Panicf

func Panicf(format string, args ...interface{})

Panicf Log

func Print

func Print(args ...interface{})

Pring Log

func Printf

func Printf(format string, args ...interface{})

Printf Log

func Warn

func Warn(args ...interface{})

Warn Log

func Warnf

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

Warnf Log

func WithFields

func WithFields(fields logrus.Fields) *logrus.Entry

Types

type Event

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

Event stores messages to log later, from our standard interface

type StandardLogger

type StandardLogger struct {
	*logrus.Logger
}

StandardLogger provides a single configured logging service

func GetLogger

func GetLogger() *StandardLogger

func NewLogger

func NewLogger(formatter, level string) *StandardLogger

NewLogger creates a new instance of a logging instance

Jump to

Keyboard shortcuts

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