labstack_logger

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 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 WrappedEchoLogger

type WrappedEchoLogger struct {
	// contains filtered or unexported fields
}

WrappedEchoLogger that can be passed to Echo middleware for Datadog integration implements Echo Logger from vendor/github.com/labstack/echo/v4/log.go

func NewWrappedEchoLogger

func NewWrappedEchoLogger() *WrappedEchoLogger

NewWrappedEchoLogger instance

func (*WrappedEchoLogger) Debug

func (wel *WrappedEchoLogger) Debug(i ...interface{})

Debug logs at the debug level

func (*WrappedEchoLogger) Debugf

func (wel *WrappedEchoLogger) Debugf(format string, args ...interface{})

Debugf logs formatted output at the debug level

func (*WrappedEchoLogger) Debugj

func (wel *WrappedEchoLogger) Debugj(j echo.JSON)

Debugj marshals a map to JSON and and logs it at the debug level

func (*WrappedEchoLogger) Error

func (wel *WrappedEchoLogger) Error(i ...interface{})

Error logs at the error level

func (*WrappedEchoLogger) Errorf

func (wel *WrappedEchoLogger) Errorf(format string, args ...interface{})

Errorf logs formatted output at the error level

func (*WrappedEchoLogger) Errorj

func (wel *WrappedEchoLogger) Errorj(j echo.JSON)

Errorj marshals a map to JSON and and logs it at the error level

func (*WrappedEchoLogger) Fatal

func (wel *WrappedEchoLogger) Fatal(i ...interface{})

Fatal logs fatally

func (*WrappedEchoLogger) Fatalf

func (wel *WrappedEchoLogger) Fatalf(format string, args ...interface{})

Fatalf logs formatted output fatally

func (*WrappedEchoLogger) Fatalj

func (wel *WrappedEchoLogger) Fatalj(j echo.JSON)

Fatalj marshals a map to JSON and and logs it fatally

func (*WrappedEchoLogger) Info

func (wel *WrappedEchoLogger) Info(i ...interface{})

Info logs at the info level

func (*WrappedEchoLogger) Infof

func (wel *WrappedEchoLogger) Infof(format string, args ...interface{})

Infof logs formatted output at the info level

func (*WrappedEchoLogger) Infoj

func (wel *WrappedEchoLogger) Infoj(j echo.JSON)

Infoj marshals a map to JSON and and logs it at the info level

func (*WrappedEchoLogger) Level

func (wel *WrappedEchoLogger) Level() echo.Lvl

Level returns a mapped Echo log level

func (*WrappedEchoLogger) Output

func (wel *WrappedEchoLogger) Output() io.Writer

Output not supported to access in Coop logger, so it's returns only stub

func (*WrappedEchoLogger) Panic

func (wel *WrappedEchoLogger) Panic(i ...interface{})

Panic wraps a call to Fatal

func (*WrappedEchoLogger) Panicf

func (wel *WrappedEchoLogger) Panicf(format string, args ...interface{})

Panicf wraps a call to Fatalf

func (*WrappedEchoLogger) Panicj

func (wel *WrappedEchoLogger) Panicj(j echo.JSON)

Panicj wraps a call to Fatalj

func (*WrappedEchoLogger) Prefix

func (wel *WrappedEchoLogger) Prefix() string

Prefix returns the current log prefix

func (*WrappedEchoLogger) Print

func (wel *WrappedEchoLogger) Print(i ...interface{})

Print logs at the info level

func (*WrappedEchoLogger) Printf

func (wel *WrappedEchoLogger) Printf(format string, args ...interface{})

Printf logs formatted output at the info level

func (*WrappedEchoLogger) Printj

func (wel *WrappedEchoLogger) Printj(j echo.JSON)

Printj marshals a map to JSON and and logs it at the info level

func (*WrappedEchoLogger) SetHeader

func (wel *WrappedEchoLogger) SetHeader(_ string)

SetHeader not supported

func (*WrappedEchoLogger) SetLevel

func (wel *WrappedEchoLogger) SetLevel(v echo.Lvl)

SetLevel maps the log level from an Echo log level

func (*WrappedEchoLogger) SetOutput

func (wel *WrappedEchoLogger) SetOutput(_ io.Writer)

SetOutput not supported to change in Coop logger, accepting only stub

func (*WrappedEchoLogger) SetPrefix

func (wel *WrappedEchoLogger) SetPrefix(p string)

SetPrefix sets a string that will be prefixed to each log line

func (*WrappedEchoLogger) Warn

func (wel *WrappedEchoLogger) Warn(i ...interface{})

Warn logs at the warn level

func (*WrappedEchoLogger) Warnf

func (wel *WrappedEchoLogger) Warnf(format string, args ...interface{})

Warnf logs formatted output at the warn level

func (*WrappedEchoLogger) Warnj

func (wel *WrappedEchoLogger) Warnj(j echo.JSON)

Warnj marshals a map to JSON and and logs it at the warn level

Jump to

Keyboard shortcuts

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