ytlog

package
v0.0.0-...-5019c65 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Must

func Must() *logzap.Logger

Must does the same as New but panics on error.

func New

func New() (*logzap.Logger, error)

New returns synchronous stderr logger configured with YT defaults.

func NewSelfrotate

func NewSelfrotate(logPath string, options ...Option) (l *logzap.Logger, stop func(), err error)

NewSelfrotate returns logger configured with YT defaults.

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithLogLevel

func WithLogLevel(level zapcore.Level) Option

Directories

Path Synopsis
Package selfrotate provides zap sync that automatically rotates log files according to provided config.
Package selfrotate provides zap sync that automatically rotates log files according to provided config.

Jump to

Keyboard shortcuts

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