logs

package
v0.0.0-...-4e81ba4 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Overview

Package logs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PPLog

type PPLog struct {
	*zap.SugaredLogger
	// contains filtered or unexported fields
}

PPLog .

var Logger *PPLog

Logger .

func NewLog

func NewLog(pathFile string, maxSize, maxBackups, maxAge int, caller bool) (l *PPLog)

func (*PPLog) Flush

func (l *PPLog) Flush() error

func (*PPLog) SetLevel

func (l *PPLog) SetLevel(lev zapcore.Level)

func (*PPLog) SetLogFile

func (l *PPLog) SetLogFile(pathFile string, maxSize, maxBackups, maxAge int, caller bool)

Jump to

Keyboard shortcuts

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