gclogs

command
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Command gclogs safely deletes old log files.

It looks for file names that match the format of files produced by the vlog package, and deletes the ones that have not changed in the amount of time specified by the --cutoff flag.

Only files produced by the same user as the one running the gclogs command are considered for deletion.

Usage:

gclogs [flags] <dir> ...

<dir> ... A list of directories where to look for log files.

The gclogs flags are:

-cutoff=24h0m0s
  The age cut-off for a log file to be considered for garbage collection.
-n=false
  If true, log files that would be deleted are shown on stdout, but not
  actually deleted.
-program=.*
  A regular expression to apply to the program part of the log file name, e.g
  ".*test".
-verbose=false
  If true, each deleted file is shown on stdout.

The global flags are:

-metadata=<just specify -metadata to activate>
  Displays metadata for the program and exits.
-time=false
  Dump timing information to stderr before exiting the program.

Jump to

Keyboard shortcuts

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