log

package
v0.0.0-...-c5cc7cd Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LoggerProviderSet = wire.NewSet(
		ProvideLogger,
	)
)

Functions

func NewGraphQLServerPlugin

func NewGraphQLServerPlugin(
	logger *zap.SugaredLogger,
	introspectionOperationName string,
) graphql.HandlerExtension

NewGraphQLServerPlugin creates a logging plugin for GraphQL servers. Logs GraphQL operations, responses and errors, if any.

func NewHTTPDSPlugin

func NewHTTPDSPlugin(logger *zap.Logger) httpds.Plugin

NewHTTPDSPlugin creates a logging plugin for HTTP data sources. Logs the HTTP request, response and error, if any.

func NewLogger

func NewLogger(env config.AppEnvironment) *zap.SugaredLogger

NewLogger creates a new logger

func NewRESTServerPlugin

func NewRESTServerPlugin(logger *zap.SugaredLogger) gin.HandlerFunc

NewRESTServerPlugin creates a logging plugin for REST servers. Logs the HTTP request, response and error, if any.

func ProvideLogger

func ProvideLogger(env config.AppEnvironment) (*zap.SugaredLogger, func(), error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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