summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrtoma <rtoma@bol.com>2012-12-19 16:51:07 +0100
committerrtoma <rtoma@bol.com>2012-12-19 16:51:07 +0100
commit6d4c4f6c45c59c81cb4523bba4d3cf518fbe9ffd (patch)
treed285bf8d3f76db6df6d075bc32e8ce98b4027a5e
parent16960bf118cc4bd21a3bace837000cbc624ef9cf (diff)
downloadlogster-6d4c4f6c45c59c81cb4523bba4d3cf518fbe9ffd.zip
logster-6d4c4f6c45c59c81cb4523bba4d3cf518fbe9ffd.tar.gz
logster-6d4c4f6c45c59c81cb4523bba4d3cf518fbe9ffd.tar.bz2
add cmdline support for log_dir
-rw-r--r--README.md3
-rwxr-xr-xbin/logster3
2 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index af1f8ea..18960f5 100644
--- a/README.md
+++ b/README.md
@@ -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