logs

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

日志引擎层

Index

Constants

This section is empty.

Variables

View Source
var Logger *zap.Logger

Functions

func Debug

func Debug(format string, v ...interface{})

Types

type Log

type Log struct {
	// contains filtered or unexported fields
}

func NewLog

func NewLog(opts ...NewLogOptions) *Log

App 构造方法

func (*Log) InitLog

func (this *Log) InitLog() (logger *zap.Logger, err error)

初始化日志 logger

type NewLogOptions

type NewLogOptions func(log *Log)

Options方法

func WithLogPath

func WithLogPath(logPath string) NewLogOptions

设置日志目录

func WithStorageDays

func WithStorageDays(storageDays int) NewLogOptions

设置日志存活天数

Jump to

Keyboard shortcuts

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