log

package
v0.4.2-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config) *zap.Logger

New is a function to create new zap logger this logger implement the Logger interface

Types

type Config

type Config struct {
	Name         string
	Level        zapcore.Level
	File         string
	RotateConfig *RotateConfig
	Wrappers     []func(*zap.Logger) *zap.Logger
}

type RotateConfig

type RotateConfig struct {
	Compress   bool
	MaxAge     int
	MaxSize    int
	MaxBackups int
}

Jump to

Keyboard shortcuts

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