logging

package
v8.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package logging provides a module which creates a zap.Logger instance 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 (log *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