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: 0

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