logger

package
v0.0.0-...-b08fcc5 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEchoLogger

func NewEchoLogger(prefix string) echo.Logger

func NewGORMLogger

func NewGORMLogger(config Config) glogger.Interface

Types

type AgolloLogger

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

func NewAgolloLogger

func NewAgolloLogger() *AgolloLogger

func (AgolloLogger) Debug

func (a AgolloLogger) Debug(v ...interface{})

func (AgolloLogger) Debugf

func (a AgolloLogger) Debugf(format string, v ...interface{})

func (AgolloLogger) Error

func (a AgolloLogger) Error(v ...interface{})

func (AgolloLogger) Errorf

func (a AgolloLogger) Errorf(format string, v ...interface{})

func (AgolloLogger) Info

func (a AgolloLogger) Info(v ...interface{})

func (AgolloLogger) Infof

func (a AgolloLogger) Infof(format string, v ...interface{})

func (AgolloLogger) Warn

func (a AgolloLogger) Warn(v ...interface{})

func (AgolloLogger) Warnf

func (a AgolloLogger) Warnf(format string, v ...interface{})

type Config

type Config struct {
	SlowThreshold             time.Duration
	IgnoreRecordNotFoundError bool
	LogLevel                  glogger.LogLevel

	Host     string
	User     string
	Database string
	Instance string
}

Jump to

Keyboard shortcuts

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