ringlogger

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: MIT Imports: 12 Imported by: 4

Documentation

Index

Constants

View Source
const CursorAll = ^uint32(0)

Variables

This section is empty.

Functions

func DumpTo

func DumpTo(inPath string, out io.Writer, continuous bool) error

func InitGlobalLogger

func InitGlobalLogger(file, tag string) error

Types

type FollowLine

type FollowLine struct {
	Line  string
	Stamp time.Time
}

type Ringlogger

type Ringlogger struct {
	// contains filtered or unexported fields
}
var Global *Ringlogger

func NewRinglogger

func NewRinglogger(filename, tag string) (*Ringlogger, error)

func NewRingloggerFromInheritedMappingHandle

func NewRingloggerFromInheritedMappingHandle(handleStr, tag string) (*Ringlogger, error)

func (*Ringlogger) Close

func (rl *Ringlogger) Close() error

func (*Ringlogger) ExportInheritableMappingHandle added in v0.3.5

func (rl *Ringlogger) ExportInheritableMappingHandle() (handleToClose windows.Handle, err error)

func (*Ringlogger) FollowFromCursor

func (rl *Ringlogger) FollowFromCursor(cursor uint32) (followLines []FollowLine, nextCursor uint32)

func (*Ringlogger) Write

func (rl *Ringlogger) Write(p []byte) (n int, err error)

func (*Ringlogger) WriteTo

func (rl *Ringlogger) WriteTo(out io.Writer) (n int64, err error)

func (*Ringlogger) WriteWithTimestamp added in v0.4.4

func (rl *Ringlogger) WriteWithTimestamp(p []byte, ts int64) (n int, err error)

Jump to

Keyboard shortcuts

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