writer

package
v0.0.0-...-06ab379 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(level types.LogLevel, delimiter, tag, prefix, msg string, kvs ...string) string

func LogCaller

func LogCaller(delimiter, msg string) string

func LogTime

func LogTime(loc *time.Location, format, delimiter, msg string) string

Types

type Writer

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

func NewWriter

func NewWriter(connection, addr, prefix string, priority syslog.Priority, bufferLen int) (*Writer, error)

func (*Writer) Reconnect

func (w *Writer) Reconnect() error

func (*Writer) Stop

func (w *Writer) Stop(lock bool)

func (*Writer) Write

func (w *Writer) Write(lp types.LogParams, tp types.TimeParams, mp types.MsgParams, kvs ...string) error

Jump to

Keyboard shortcuts

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