-s is a shorthand for monitoring sfa log files
Thierry Parmentelat [Mon, 4 Oct 2010 12:33:38 +0000 (14:33 +0200)]
bin/mtail.py

index 954b1e5..41466cf 100755 (executable)
@@ -49,6 +49,8 @@ example:
 
        parser.add_option("-u","--usual",action="store_true",dest="plc_mode",default=False,
                          help="Shortcut for watching /var/log with default settings")
+        parser.add_option("-s","--sfa",action="store_true",dest="sfa_mode",default=False,
+                          help="Shortcut for monitoring server-side SFA log files")
 
        # verbosity
        parser.add_option("-v","--verbose", action="store_true", dest="verbose", default=False, 
@@ -67,6 +69,11 @@ example:
             # watch the postgresql logs as well
             self.args.append('/var/lib/pgsql/data/pg_log')
 
+        if self.options.sfa_mode:
+            self.args.append("/var/log/sfa.log")
+            self.args.append("/var/log/sfa_import.log")
+            self.args.append("/var/log/httpd/sfa_access_log")
+
        if self.options.verbose:
            print 'Version:',self.subversion_id
            print 'Options:',self.options