etlog

package module
v0.0.0-...-c75b3ee Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: MIT Imports: 11 Imported by: 0

README

etlog

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func L

func L() *zap.Logger

func LogWithType

func LogWithType(t string) *zap.Logger

func NewLogger

func NewLogger(config LogConfig, logType string) (err error)

Types

type Log

type Log struct {
	Time      time.Time
	Level     zapcore.Level
	Caller    string
	Message   string
	ExtraData map[string]interface{}
	Traceback string
	RawData   string
}

func Stash

func Stash(l string) (Log, error)

type LogConfig

type LogConfig struct {
	ReporterType string
	ReporterName string
	FilePath     string
	MaxFileSize  int
	MaxBackups   int
	MaxAge       int
	Compress     bool
	KafkaEnable  bool
	KafkaConfig  kafka.KafkaConfig
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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