jotrotate

package
v1.89.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 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().

Functions

func ParseAndSetup

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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