logging

package
v7.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: MIT Imports: 9 Imported by: 1

Documentation

Overview

Package logging provides a module which creates a zap.Logger for other modules.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logging

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

Logging is a module which implements the gotenberg.LoggerProvider interface.

func (Logging) Descriptor

func (Logging) Descriptor() gotenberg.ModuleDescriptor

Descriptor returns a Logging's module descriptor.

func (Logging) Logger

func (log Logging) Logger(mod gotenberg.Module) (*zap.Logger, error)

Logger returns a zap.Logger.

func (*Logging) Provision

func (log *Logging) Provision(ctx *gotenberg.Context) error

Provision sets the log level and format.

func (Logging) Validate

func (log Logging) Validate() error

Validate validates the log level and format.

Jump to

Keyboard shortcuts

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