diff options
| author | Jeff Carr <[email protected]> | 2023-12-29 17:24:39 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-12-29 17:24:39 -0600 |
| commit | 424a1b42e294e89a6f893196ebf23ba3d20572db (patch) | |
| tree | 7a890f12827edc6d2cbb4cb9221322149ecac3a6 /args.go | |
| parent | 5766e86595bb7bc4c16c37f8ed47bcf0db25d82b (diff) | |
using args.Register()
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'args.go')
| -rw-r--r-- | args.go | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -0,0 +1,22 @@ +package log + +import ( + arg "github.com/alexflint/go-arg" +) + +// +// Attempt to switch logging to syslog on linux +// + +var argLog ArgLog + +// This struct can be used with the go-arg package +type ArgLog struct { + LogTmp bool `arg:"--log-tmp" help:"send all output /tmp"` + LogStdout bool `arg:"--log-stdout" help:"send all output to STDOUT"` + LogQuiet bool `arg:"--log-quiet" help:"suppress all output"` +} + +func init() { + arg.Register(&argLog) +} |
