ringlogger

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: MIT Imports: 13 Imported by: 4

Documentation

Index

Constants

View Source
const CursorAll = ^uint32(0)

Variables

This section is empty.

Functions

func DumpTo

func DumpTo(out io.Writer, notSystem bool) error

func InitGlobalLogger

func InitGlobalLogger(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 string, tag string) (*Ringlogger, error)

func NewRingloggerFromInheritedMappingHandle

func NewRingloggerFromInheritedMappingHandle(handleStr string, 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)

Jump to

Keyboard shortcuts

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