From c19bb45a14aaa39bdafa00905bf3b81920cc1b6e Mon Sep 17 00:00:00 2001 From: Darold Date: Fri, 20 Apr 2012 13:42:12 +0200 Subject: [PATCH] Update usage information with new options --- README | 14 ++++++++++---- pgbadger | 1 + 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/README b/README index 14634bf..b4420f7 100755 --- a/README +++ b/README @@ -35,12 +35,15 @@ Additional informations that could be collected need logging activation into pos ------------------------------------------------------------------------------- -Usage: pgbadger -l logfile ... > out.html +Usage: pgbadger -l logfile [...] -l | --logfile filename: path to the PostgreSQL log file to parse. It can - be a plain text log or a gzip compressed file - with the .gz extension. + be a plain text log or a gzip compressed file + with the .gz extension. -f | --format logtype : the value can be: syslog or stderr. Default: stderr + -o | --outfile filename: define the filename for the output. Default depends + of the output format: out.html or out.txt. To dump + output to stdout use - as filename. -i | --ident name : programname used as syslog ident. Default: postgres -h | --help : show this message and exit. -d | --dbname database : only report what concern the given database @@ -49,9 +52,12 @@ Usage: pgbadger -l logfile ... > out.html -s | --sample number : number of query sample to store/display. Default: 3 -x | --extension : output format. Values: text or html. Default: html -m | --maxlength size : maximum length of a query, it will be cutted above - the given size. Default: no truncate + the given size. Default: no truncate -g | --graph : generate graphs, requires GD::Graph perl module -b | --begin datetime : start date/time for the data to be parsed in log. -e | --end datetime : end date/time for the data to be parsed in log. + -q | --quiet : disable output to stderr and don't print debug informations. + -p | --progress : show a progress bar, quiet mode is enabled with this option. + diff --git a/pgbadger b/pgbadger index a7d3177..f935702 100755 --- a/pgbadger +++ b/pgbadger @@ -391,6 +391,7 @@ Usage: $0 -l logfile [...] -b | --begin datetime : start date/time for the data to be parsed in log. -e | --end datetime : end date/time for the data to be parsed in log. -q | --quiet : disable output to stderr and don't print debug informations. + -p | --progress : show a progress bar, quiet mode is enabled with this option. }; -- 2.50.1