logging

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConsoleWriter

func NewConsoleWriter(format string) (io.Writer, error)

NewConsoleWriter parses the log format and creates an appropriate writer. It is based on part of Tendermint's NewTendermintLogger.

func NewConsoleWriterWith

func NewConsoleWriterWith(w io.Writer, format string) (io.Writer, error)

Types

type ServiceLogger

type ServiceLogger struct {
	Service service.Logger
	// contains filtered or unexported fields
}

func NewServiceLogger

func NewServiceLogger(svc service.Service, format string) (*ServiceLogger, error)

func (*ServiceLogger) Write

func (l *ServiceLogger) Write(b []byte) (int, error)

func (*ServiceLogger) WriteLevel

func (l *ServiceLogger) WriteLevel(level zerolog.Level, b []byte) (int, error)

Jump to

Keyboard shortcuts

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