writer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileWriter

func NewFileWriter(logFilePath string) zapcore.WriteSyncer

newFileWriter 创建文件 Writer,确保路径存在

Types

type LokiWriter

type LokiWriter struct {
	// contains filtered or unexported fields
}

func NewLokiWriter

func NewLokiWriter(conf *config.LokiConfig) *LokiWriter

新增重试次数参数

func (*LokiWriter) Sync

func (w *LokiWriter) Sync() error

func (*LokiWriter) Write

func (w *LokiWriter) Write(p []byte) (n int, err error)

Write 方法实现

Jump to

Keyboard shortcuts

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