rotate

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogWriter

func GetLogWriter(cfg *Config) zapcore.WriteSyncer

Types

type Config

type Config struct {
	Filename    string `json:"filename"`
	MaxSizeMB   int    `json:"max_size_mb"`
	MaxAgeDay   int    `json:"max_age_day"`
	MaxBackup   int    `json:"max_backup"`
	IsLocalTime bool   `json:"is_local_time"`
	IsCompress  bool   `json:"is_compress"`
}

func DefaultConfig

func DefaultConfig() *Config

Jump to

Keyboard shortcuts

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