zap

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCore

func NewCore(enc zapcore.Encoder, ws *syslogWriteSyncer, enab zapcore.LevelEnabler) zapcore.Core

NewCore creates a Core that writes logs to a WriteSyncer.

func NewLogger

func NewLogger(opts ...log.Option) log.Logger

NewLogger New builds a new logger based on options

Types

type Options

type Options struct {
	log.Options
}

Jump to

Keyboard shortcuts

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