Documentation ¶
Index ¶
- Variables
- func NewGraphQLServerPlugin(logger *zap.SugaredLogger, introspectionOperationName string) graphql.HandlerExtension
- func NewHTTPDSPlugin(logger *zap.Logger) httpds.Plugin
- func NewLogger(env config.AppEnvironment) *zap.SugaredLogger
- func NewRESTServerPlugin(logger *zap.SugaredLogger) gin.HandlerFunc
- func ProvideLogger(env config.AppEnvironment) (*zap.SugaredLogger, func(), error)
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.