From b6a59c39a7178d06b7f0f19b18906c76a4be8ec6 Mon Sep 17 00:00:00 2001 From: Darold Gilles Date: Tue, 7 Oct 2014 16:24:31 +0200 Subject: [PATCH] Add a note into documentation about prefix [%l-1]. Thanks to sterfield for the suggestion. --- README | 6 ++++++ doc/pgBadger.pod | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/README b/README index 71a1488..847b8ff 100644 --- a/README +++ b/README @@ -381,6 +381,12 @@ POSTGRESQL CONFIGURATION but this is not only recommended by pgBadger. + Note: the session line [%l-1] is just used to match the default prefix + for "stderr". The -1 has no real purpose and basically is not used in + Pgbadger statistics / graphs. You can safely removed them from the + log_line_prefix but you will need to set the --prefix command line + option. + log_min_duration_statement, log_duration and log_statement If you want full statistics reports you must set log_min_duration_statement to 0 or more milliseconds. diff --git a/doc/pgBadger.pod b/doc/pgBadger.pod index 88d7ce1..cfb3dd9 100644 --- a/doc/pgBadger.pod +++ b/doc/pgBadger.pod @@ -362,6 +362,11 @@ Of course your log messages should be in English without locale support: but this is not only recommended by pgBadger. +Note: the session line [%l-1] is just used to match the default prefix for "stderr". +The -1 has no real purpose and basically is not used in Pgbadger statistics / graphs. +You can safely removed them from the log_line_prefix but you will need to set the +--prefix command line option. + =head1 log_min_duration_statement, log_duration and log_statement If you want full statistics reports you must set log_min_duration_statement -- 2.50.1