unifiedlog

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultLogDir

func DefaultLogDir() (string, error)

Types

type Entry

type Entry struct {
	Timestamp time.Time
	Component string
	Category  string
	Direction string
	Action    string
	Detail    string
	Len       int
	Hex       string
	ASCII     string
}

type Logger

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

func Open

func Open(component, dir string) (*Logger, error)

func (*Logger) Close

func (l *Logger) Close() error

func (*Logger) Log

func (l *Logger) Log(ctx context.Context, category, direction, action, detail string, seq []byte)

func (*Logger) Write

func (l *Logger) Write(ctx context.Context, entry Entry)

Jump to

Keyboard shortcuts

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