connlog

package
v1.0.23 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnWriter

type ConnWriter struct {
	log.LogFilter
	log.LogFormatter

	Net     string
	Addr    string
	Timeout time.Duration
	// contains filtered or unexported fields
}

ConnWriter implements Writer. it writes messages in keep-live tcp connection.

func (*ConnWriter) Close

func (cw *ConnWriter) Close()

Close close the file description, close file writer.

func (*ConnWriter) Flush

func (cw *ConnWriter) Flush()

Flush implementing method. empty.

func (*ConnWriter) SetTimeout

func (cw *ConnWriter) SetTimeout(timeout string) error

SetTimeout set timeout

func (*ConnWriter) Write

func (cw *ConnWriter) Write(le *log.Event) (err error)

Write write logger message to connection.

Jump to

Keyboard shortcuts

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