zap

package
v0.0.0-...-e3220b9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(conf Config, opts ...zap.Option) *zapslog.Handler

Types

type Config

type Config struct {
	Name             string   `mapstructure:"name"`
	Format           string   `mapstructure:"format"`
	AddSource        bool     `mapstructure:"addSource"`
	Level            string   `mapstructure:"level"`
	OutputPaths      []string `mapstructure:"outputPaths"`
	ErrorOutputPaths []string `mapstructure:"errorOutputPaths"`
}

Jump to

Keyboard shortcuts

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