logwriter

package
v0.0.0-...-05bc493 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

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

func NewAdapter

func NewAdapter(output io.Writer, protectedClose bool, flushFn, fatalFlushFn logcommon.LogFlushFunc) *Adapter

func (*Adapter) Close

func (p *Adapter) Close() error

func (*Adapter) DirectClose

func (p *Adapter) DirectClose() error

func (*Adapter) DirectFlushFatal

func (p *Adapter) DirectFlushFatal() error

func (*Adapter) DirectLevelWrite

func (p *Adapter) DirectLevelWrite(level logcommon.Level, b []byte) (int, error)

func (*Adapter) Flush

func (p *Adapter) Flush() error

func (*Adapter) IsClosed

func (p *Adapter) IsClosed() bool

func (*Adapter) IsFatal

func (p *Adapter) IsFatal() bool

func (*Adapter) LockFatal

func (p *Adapter) LockFatal()

func (*Adapter) LogLevelWrite

func (p *Adapter) LogLevelWrite(level logcommon.Level, b []byte) (int, error)

func (*Adapter) SetClosed

func (p *Adapter) SetClosed() bool

func (*Adapter) SetFatal

func (p *Adapter) SetFatal() bool

func (*Adapter) Write

func (p *Adapter) Write(b []byte) (int, error)

type FatalDirectWriter

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

func NewDirectWriter

func NewDirectWriter(output *Adapter) *FatalDirectWriter

func (*FatalDirectWriter) Close

func (p *FatalDirectWriter) Close() error

func (*FatalDirectWriter) Flush

func (p *FatalDirectWriter) Flush() error

func (*FatalDirectWriter) IsLowLatencySupported

func (p *FatalDirectWriter) IsLowLatencySupported() bool

func (*FatalDirectWriter) LogLevelWrite

func (p *FatalDirectWriter) LogLevelWrite(level logcommon.Level, b []byte) (n int, err error)

func (*FatalDirectWriter) LowLatencyWrite

func (p *FatalDirectWriter) LowLatencyWrite(level logcommon.Level, b []byte) (int, error)

func (*FatalDirectWriter) Write

func (p *FatalDirectWriter) Write(b []byte) (n int, err error)

type ProxyLoggerOutput

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

func (*ProxyLoggerOutput) Close

func (p *ProxyLoggerOutput) Close() error

func (*ProxyLoggerOutput) Flush

func (p *ProxyLoggerOutput) Flush() error

func (*ProxyLoggerOutput) GetTarget

func (p *ProxyLoggerOutput) GetTarget() logcommon.LoggerOutput

func (*ProxyLoggerOutput) IsLowLatencySupported

func (p *ProxyLoggerOutput) IsLowLatencySupported() bool

func (*ProxyLoggerOutput) LogLevelWrite

func (p *ProxyLoggerOutput) LogLevelWrite(level logcommon.Level, b []byte) (int, error)

func (*ProxyLoggerOutput) LowLatencyWrite

func (p *ProxyLoggerOutput) LowLatencyWrite(level logcommon.Level, b []byte) (int, error)

func (*ProxyLoggerOutput) SetTarget

func (p *ProxyLoggerOutput) SetTarget(t logcommon.LoggerOutput)

func (*ProxyLoggerOutput) Write

func (p *ProxyLoggerOutput) Write(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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