influxlogger

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

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

Go to latest
Published: Jun 11, 2025 License: MIT Imports: 9 Imported by: 0

README

go-influxlogger

A simple implementation of InfluxDB 3 client to be a near drop-in replacement in applications.

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(connection, appName, host, procId string) (logging.Logger, error)

Types

type LogWriter

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

func NewLogWriter

func NewLogWriter(connection string, appName, host, procId string, flushInterval time.Duration, bufferLimit int) (*LogWriter, error)

func (*LogWriter) Write

func (w *LogWriter) Write(level logging.Level, args []any, fields logging.Fields) error

type Logger

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

func NewBufferedLogger

func NewBufferedLogger(connection string, appName, host, procId string, flushInterval time.Duration, bufferLimit int) (*Logger, error)

func (*Logger) Log

func (l *Logger) Log(level logging.Level, args ...interface{})

func (*Logger) Logger

func (l *Logger) Logger() logging.Logger

func (*Logger) WithAdditionalFields

func (l *Logger) WithAdditionalFields(fields logging.Fields) logging.Logger

func (*Logger) WithFields

func (l *Logger) WithFields(fields logging.Fields) logging.Logger

Jump to

Keyboard shortcuts

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