jotrotate

package
v1.104.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package jotrotate provides a pre-canned way to add jot logging with file rotation, along with command-line options for controlling it.

Index

Constants

This section is empty.

Variables

View Source
var PathToLog string

PathToLog holds the path to the log file that was configured on the command line when using ParseAndSetup().

Deprecated: Use rotation.PathToLog instead. August 28, 2023

Functions

func ParseAndSetup deprecated

func ParseAndSetup(cl *cmdline.CmdLine) []string

ParseAndSetup adds command-line options for controlling logging, parses the command line, then instantiates a rotator and attaches it to jot. Returns the remaining arguments that weren't used for option content.

Deprecated: Use rotation.ParseAndSetupLogging instead. August 28, 2023

Types

This section is empty.

Jump to

Keyboard shortcuts

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