logging

package
v0.0.0-...-bc69434 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fields

type Fields map[string]interface{}

Fields convenience type for adding multiple fields to a log statement.

type Interface

type Interface interface {
	Debug(args ...interface{})
	Debugf(format string, args ...interface{})
	Error(args ...interface{})
	Errorf(format string, args ...interface{})
	Fatal(args ...interface{})
	Fatalf(format string, args ...interface{})
	Info(args ...interface{})
	Infof(format string, args ...interface{})
	Warning(args ...interface{})
	Warningf(format string, args ...interface{})
	WithField(key string, value interface{}) Interface
	WithFields(fields Fields) Interface
}

Interface logger interface

func New

func New(options Options) Interface

New return default logger

func NewLogrusLogger

func NewLogrusLogger(options Options) Interface

NewLogrusLogger create new logrus logger

type Options

type Options struct {
	LogsFormat string
	LogsLevel  string
	LogsPath   string
}

Options logger options

Jump to

Keyboard shortcuts

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