log

package
v0.0.0-...-abf49f6 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Console = "console"
	JSON    = "json"
	Logfmt  = "logfmt"
)
View Source
const TimeFormat = "2006-01-02T15:04:05.000000Z07:00"

Variables

This section is empty.

Functions

func IsTerminal

func IsTerminal(w io.Writer) bool

IsTerminal checks if w is a file and whether it is an interactive terminal session.

func New

func New(w io.Writer) (*zap.Logger, error)

Types

type Config

type Config struct {
	Format string `json:"format"`
	Level  zapcore.Level
}

func NewConfig

func NewConfig() Config

func (*Config) New

func (c *Config) New(w io.Writer) (*zap.Logger, error)

Jump to

Keyboard shortcuts

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