abaolog

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Es

func Es(esURL []string, esHost, logIndex, userName, userPassword string, logLevel uint32)

Es config logrus log to es

func File

func File(logFilePath, logFileName, logType string, logFileDays int, lineNumber bool)

File config logrus log to file

Types

type LogFormatter

type LogFormatter struct{}

LogFormatter 日志自定义格式

func (*LogFormatter) Format

func (s *LogFormatter) Format(entry *logrus.Entry) ([]byte, error)

Format 格式详情

Jump to

Keyboard shortcuts

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