blob: f9ede8b8da88e847d4a076b74ce0fbb265730f76 [file] [log] [blame]
Jiri Simsa3f4e92d2015-03-24 21:26:37 -07001// Copyright 2015 The Vanadium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
Robin Thellend4523df62014-12-08 09:55:46 -08005// This file was auto-generated via go generate.
6// DO NOT UPDATE MANUALLY
7
8/*
Todd Wang6ed3b6c2015-04-08 14:37:04 -07009Command gclogs safely deletes old log files.
Robin Thellend4523df62014-12-08 09:55:46 -080010
11It looks for file names that match the format of files produced by the vlog
12package, and deletes the ones that have not changed in the amount of time
13specified by the --cutoff flag.
14
15Only files produced by the same user as the one running the gclogs command are
16considered for deletion.
17
18Usage:
19 gclogs [flags] <dir> ...
20
21<dir> ... A list of directories where to look for log files.
22
23The gclogs flags are:
24 -cutoff=24h0m0s
25 The age cut-off for a log file to be considered for garbage collection.
26 -n=false
27 If true, log files that would be deleted are shown on stdout, but not
28 actually deleted.
29 -program=.*
30 A regular expression to apply to the program part of the log file name, e.g
31 ".*test".
32 -verbose=false
33 If true, each deleted file is shown on stdout.
Matt Rosencrantz83b0b7f2015-03-26 16:17:01 -070034
35The global flags are:
Jiri Simsa26f1c4d2015-08-09 17:49:40 -070036 -metadata=<just specify -metadata to activate>
Todd Wang3f7ceb42015-05-04 17:51:34 -070037 Displays metadata for the program and exits.
Robin Thellend4523df62014-12-08 09:55:46 -080038*/
39package main