diff options
-rw-r--r-- | README.md | 3 | ||||
-rwxr-xr-x | bin/logster | 3 |
2 files changed, 6 insertions, 0 deletions
@@ -96,6 +96,9 @@ Additional usage details can be found with the -h option: -s STATE_DIR, --state-dir=STATE_DIR Where to store the logtail state file. Default location /var/run + -l LOG_DIR, --log-dir=LOG_DIR + Where to store the logster logfile. Default + location /var/log/logster -o OUTPUT, --output=OUTPUT Where to send metrics (can specify multiple times). Choices are 'graphite', 'ganglia', or 'stdout'. diff --git a/bin/logster b/bin/logster index bd77b43..2b8be2e 100755 --- a/bin/logster +++ b/bin/logster @@ -87,6 +87,8 @@ cmdline.add_option('--graphite-host', action='store', help='Hostname and port for Graphite collector, e.g. graphite.example.com:2003') cmdline.add_option('--state-dir', '-s', action='store', default=state_dir, help='Where to store the logtail state file. Default location %s' % state_dir) +cmdline.add_option('--log-dir', '-l', action='store', default=log_dir, + help='Where to store the logster logfile. Default location %s' % log_dir) cmdline.add_option('--output', '-o', action='append', choices=('graphite', 'ganglia', 'stdout'), help="Where to send metrics (can specify multiple times). Choices are 'graphite', 'ganglia', or 'stdout'.") @@ -114,6 +116,7 @@ if 'graphite' in options.output and not options.graphite_host: class_name = arguments[0] log_file = arguments[1] state_dir = options.state_dir +log_dir = options.log_dir logtail = options.logtail |