package
0.0.0-20240930111939-8d08343a7663
Repository: https://github.com/diycoder/elf.git
Documentation: pkg.go.dev

# Functions

New creates a new RotateLogs object.
WithClock creates a new Option that sets a clock that the RotateLogs object will use to determine the current time.
WithLinkName creates a new Option that sets the symbolic link name that gets linked to the current file name being used.
WithLocation creates a new Option that sets up a "Clock" interface that the RotateLogs object will use to determine the current time.
WithMaxAge creates a new Option that sets the max age of a log file before it gets purged from the file system.
WithRotationCount creates a new Option that sets the number of files should be kept before it gets purged from the file system.
WithRotationTime creates a new Option that sets the time between rotation.

# Variables

Local is an object satisfying the Clock interface, which returns the current time in the local timezone.
UTC is an object satisfying the Clock interface, which returns the current time in UTC.

# Structs

RotateLogs represents a log file that gets automatically rotated as you write to it.

# Interfaces

Clock is the interface used by the RotateLogs object to determine the current time.
Option is used to pass optional arguments to the RotateLogs constructor.