# Functions
CreateFile creates a new file in the given path, creating parent directories as necessary.
ForceNewFile ensures a new file is created every time New() is called.
GenerateFn creates a file name based on the pattern, the current time, and the rotation time.
New creates a new RotateLogs object.
No description provided by the author
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
# Structs
No description provided by the author
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
No description provided by the author
IOption is used to pass optional arguments to the RotateLogs constructor.