logging

package
v4.17.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(opts Options)

Configure configures logger

Types

type AntsLogger

type AntsLogger struct{}

AntsLogger is a logger for ants module

func (*AntsLogger) Printf

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

Printf must have the same semantics as log.Printf

type LogrusFormatter

type LogrusFormatter struct{}

LogrusFormatter is a logrus formatter

func (*LogrusFormatter) Format

func (f *LogrusFormatter) Format(entry *logrus.Entry) ([]byte, error)

Format renders a single log entry from logrus entry to zerolog

type Options added in v4.17.0

type Options struct {
	LogLevel   string
	LogJSON    bool
	LogCaller  bool
	LogNoColor bool
}

Jump to

Keyboard shortcuts

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