zap

package module
v0.0.0-...-0a7de49 Latest Latest
Warning

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

Go to latest
Published: May 27, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	Options []zap.Option

	LC       sen.Lifecycle `inject:"lifecycle"`
	Injector sen.Injector  `inject:"injector"`
}

Plugin is a sen.Plugin that provides an instance of *zap.Logger.

Usage

app.With(&zap.Plugin{
	Options: zapOptions,
})

func (Plugin) Initialize

func (p Plugin) Initialize() error

Initialize initialises zap logger for the application. The logger will be regisreted under "logger" tag.

Jump to

Keyboard shortcuts

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