Categorygithub.com/kelofox/golang-file-rotatelogs
modulepackage
1.2.1
Repository: https://github.com/kelofox/golang-file-rotatelogs.git
Documentation: pkg.go.dev

# README

# Functions

ForceNewFile ensures a new file is created every time New() is called.
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.
WithHandler creates a new Option that specifies the Handler object that gets invoked when an event occurs.
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.
WithRotationSize creates a new Option that sets the log file size between rotation.
WithRotationTime creates a new Option that sets the time between rotation.

# Constants

No description provided by the author
No description provided by the author

# 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

No description provided by the author
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.
No description provided by the author
No description provided by the author
Option is used to pass optional arguments to the RotateLogs constructor.

# Type aliases

No description provided by the author
No description provided by the author