logging

package
v4.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(cli *model.Cli)

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

Jump to

Keyboard shortcuts

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