log

package
v0.0.0-...-92f319c Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SystemField = "system"

Functions

func Configure

func Configure(opts *Options) (err error)

func ReplaceGrpcLogger

func ReplaceGrpcLogger(logger *logrus.Entry)

ReplaceGrpcLogger sets the given logrus.Logger as a gRPC-level logger. This should be called *before* any other initialization, preferably from init() functions.

Types

type Options

type Options struct {
	LogGrpc            bool     //记录GRPC 框架日志
	OutputPaths        []string //日志输出路径
	RotationMaxSize    int      // 切割日志大小
	RotationMaxBackups int      // 备份多少个
	RotationMaxAge     int      //最大时间
	LogLevel           string
}

func DefaultOptions

func DefaultOptions() *Options

Jump to

Keyboard shortcuts

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