logging

package
v0.1.8-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: MIT Imports: 4 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 type, used to pass to `WithFields`.

type Logger

type Logger interface {
	logrus.FieldLogger
}

Logger provides closest to stdlib log.Logger interface

type StructuredLogger

type StructuredLogger struct {
	*logrus.Logger
}

StructuredLogger provides the logger interface using Sirupsen/logrus

func NewLogger

func NewLogger(format, level string, output io.Writer) *StructuredLogger

NewLogger creates StructuredLogger and configure it

func NewLoggerDefault

func NewLoggerDefault() *StructuredLogger

Jump to

Keyboard shortcuts

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