logging

package
v0.0.0-...-f85d451 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logging

type Logging struct {
	*Writers
	Loggers []json.RawMessage `json:"loggers" caddy:"namespace=config.logging.loggers inline_key=logger"`
}

func (Logging) CaddyModule

func (d Logging) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (Logging) ID

func (d Logging) ID() string

func (*Logging) Provision

func (d *Logging) Provision(ctx caddy.Context) error

Provision implement caddy.Provisioner, execute callbacks with default config

func (*Logging) Validate

func (logging *Logging) Validate() error

type Writer

type Writer struct {
	Name      string          `json:"name"`
	ConfigRaw json.RawMessage `json:"config" caddy:"namespace=caddy.logging.writers inline_key=output"`
}

Writer define a caddy.logging.writer config

type Writers

type Writers struct {
	Writers []Writer `json:"writers,omitempty" caddy:"namespace=config.logging.writers"`
	// contains filtered or unexported fields
}

Writers define a list of caddy.logging.writers, which can be referenced later by name

func (Writers) CaddyModule

func (w Writers) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (Writers) ID

func (Writers) ID() string

ID 获取模块ID

func (*Writers) Provision

func (w *Writers) Provision(ctx caddy.Context) error

Provision 实现Provisioner

func (Writers) Validate

func (w Writers) Validate() error

Validate 实现Validator

type ZapLogger

type ZapLogger struct {
	ModuleID string `json:"name"`
}

Jump to

Keyboard shortcuts

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