lokicore

package
v0.0.0-...-ec6f880 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LokiCore

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

Zap Core for loki. Expands the zapcore.Core interface with calls to export logs to Loki.

func New

func New(original zapcore.Core, lokiCfg loki.Config) *LokiCore

func (*LokiCore) Check

func (c *LokiCore) Check(entry zapcore.Entry, checked *zapcore.CheckedEntry) *zapcore.CheckedEntry

func (*LokiCore) Enabled

func (c *LokiCore) Enabled(level zapcore.Level) bool

func (*LokiCore) Sync

func (c *LokiCore) Sync() error

func (*LokiCore) With

func (c *LokiCore) With(fields []zapcore.Field) zapcore.Core

func (*LokiCore) Write

func (c *LokiCore) Write(entry zapcore.Entry, fields []zapcore.Field) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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