]> granicus.if.org Git - pgbadger/commitdiff
Graphs are now generated by default for HTML output, option -g as been remove and...
authorDarold Gilles <gilles@darold.net>
Tue, 14 Aug 2012 22:06:58 +0000 (00:06 +0200)
committerDarold Gilles <gilles@darold.net>
Tue, 14 Aug 2012 22:06:58 +0000 (00:06 +0200)
README
doc/pgBadger.pod
pgbadger

diff --git a/README b/README
index 5f838c9013a579e7ceab24186a96dd8ab40bb402..b1d540d53918b5d69a6fb8e669c7e4d40d6b05ef 100644 (file)
--- a/README
+++ b/README
@@ -20,7 +20,7 @@ SYNOPSIS
         -d | --dbname database : only report what concern the given database
         -e | --end datetime    : end date/time for the data to be parsed in log.
         -f | --format logtype  : possible values: syslog,stderr,csv. Default: stderr
-        -g | --graph           : generate graphs using the Flotr2 javascript library
+        -G | --nograph         : disable graphs on HTML output. Enable by default.
         -h | --help            : show this message and exit.
         -i | --ident name      : programname used as syslog ident. Default: postgres
         -l | --last-parsed file: allow incremental log parsing by registering the
@@ -37,8 +37,10 @@ SYNOPSIS
         -q | --quiet           : don't print anything to stdout.
         -s | --sample number   : number of query sample to store/display. Default: 3
         -t | --top number      : number of query to store/display. Default: 20
+        -T | --title string    : change title of the HTML page report.
         -u | --dbuser username : only report what concern the given user
         -v | --verbose         : enable verbose or debug mode. Disabled by default.
+        -V | --version         : show pgBadger version and exit.
         -w | --watch-mode      : only report errors just like logwatch could do.
         -x | --extension       : output format. Values: text or html. Default: html
         -z | --zcat exec_path  : set the full path to the zcat program. Use it if
index 51ac199b60e9a3fd63c115acbc48e3c8c7802c20..916a439feb361f66b5796ffb1a48b052452c2dc8 100644 (file)
@@ -23,7 +23,7 @@ Options:
     -d | --dbname database : only report what concern the given database
     -e | --end datetime    : end date/time for the data to be parsed in log.
     -f | --format logtype  : possible values: syslog,stderr,csv. Default: stderr
-    -g | --graph           : generate graphs using the Flotr2 javascript library
+    -G | --nograph         : disable graphs on HTML output. Enable by default.
     -h | --help            : show this message and exit.
     -i | --ident name      : programname used as syslog ident. Default: postgres
     -l | --last-parsed file: allow incremental log parsing by registering the
index 18b68e154800ce49931a83fef28e27489c475e7f..b9f6622038227db597118d83dab15edbc0db207b 100755 (executable)
--- a/pgbadger
+++ b/pgbadger
@@ -53,7 +53,8 @@ my $top                 = 0;
 my $sample              = 0;
 my $extension           = '';
 my $maxlength           = 0;
-my $graph               = 0;
+my $graph               = 1;
+my $nograph             = 0;
 my $debug               = 0;
 my $nohighlight         = 0;
 my $from                = '';
@@ -100,7 +101,7 @@ my $result = GetOptions(
        "d|dbname=s"          => \$dbname,
        "e|end=s"             => \$to,
        "f|format=s"          => \$format,
-       "g|graph!"            => \$graph,
+       "G|nograph!"          => \$nograph,
        "h|help!"             => \$help,
        "i|ident=s"           => \$ident,
        "l|last-parsed=s"     => \$last_parsed,
@@ -213,6 +214,7 @@ $outdir = $infs[1] . '/';
 
 # Remove graph support if output is not html
 $graph = 0 if ($extension ne 'html');
+$graph = 0 if ($nograph);
 
 my $end_top = $top - 1;
 
@@ -685,7 +687,7 @@ Options:
     -d | --dbname database : only report what concern the given database
     -e | --end datetime    : end date/time for the data to be parsed in log.
     -f | --format logtype  : possible values: syslog,stderr,csv. Default: stderr
-    -g | --graph           : generate graphs using the Flotr2 javascript library
+    -G | --nograph         : disable graphs on HTML output. Enable by default.
     -h | --help            : show this message and exit.
     -i | --ident name      : programname used as syslog ident. Default: postgres
     -l | --last-parsed file: allow incremental log parsing by registering the