audit

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

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

Log writes newline-delimited JSON data to a file with simple size-based rotation.

func Open

func Open(path string, max int64) (*Log, error)

Open creates or appends to the log file at path. max specifies the maximum size in bytes before the file is rotated. If max is 0, no rotation occurs.

func (*Log) Close

func (l *Log) Close() error

Close closes the underlying file.

func (*Log) Path

func (l *Log) Path() string

Path returns the current log file path.

func (*Log) Write

func (l *Log) Write(p []byte) (int, error)

Write implements io.Writer.

Jump to

Keyboard shortcuts

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