syslog

package
v0.0.0-...-7eb89d9 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const QueryInGzip = "in_gzip"

Variables

This section is empty.

Functions

func NewWriter

func NewWriter(addresses ...string) (io.WriteCloser, error)

Types

type HttpWriter

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

func HttpDial

func HttpDial(addr string) (*HttpWriter, error)

func (*HttpWriter) Close

func (t *HttpWriter) Close() error

func (*HttpWriter) Write

func (t *HttpWriter) Write(b []byte) (int, error)

type MultiWriter

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

func MultiDial

func MultiDial(addresses ...string) (*MultiWriter, error)

func (*MultiWriter) Close

func (t *MultiWriter) Close() error

func (*MultiWriter) Write

func (t *MultiWriter) Write(b []byte) (int, error)

type Writer

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

func Dial

func Dial(addr string) (*Writer, error)

func (*Writer) Close

func (w *Writer) Close() error

Close closes a connection to the syslog daemon.

func (*Writer) Write

func (w *Writer) Write(b []byte) (int, error)

Write sends a log message to the syslog daemon.

func (*Writer) WriteString

func (w *Writer) WriteString(mes string) (int, error)

WriteString sends a log message to the syslog daemon.

Jump to

Keyboard shortcuts

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