zapx

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package zapx provides extensions to the zap logger package.

Index

Constants

View Source
const (
	FormatJSON = "json"
	FormatText = "text"
)

Variables

This section is empty.

Functions

func New

func New(opts ...Option) (*zap.Logger, error)

func NewDefault

func NewDefault() *zap.Logger

NewDefault returns a new zap logger with sane defaults.

Types

type Option

type Option func(*options)

func WithFormat

func WithFormat(format string) Option

func WithLevel

func WithLevel(level string) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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