logger

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GQLLog

func GQLLog() graphql.ResponseMiddleware

GQLLog logs graphql queries, mutations and errors.

func Init

func Init(lvl zerolog.Level)

Init initializes the logger

Types

type DatabaseLogger

type DatabaseLogger struct {
}

DatabaseLogger logs sql queries

func (*DatabaseLogger) Print

func (l *DatabaseLogger) Print(values ...interface{})

Print pretty prints the gorm.DB log values Mostly copied from https://github.com/jinzhu/gorm/blob/master/logger.go

Jump to

Keyboard shortcuts

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