You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-08-18 20:41:58 +03:00
Added the log-level-stderr option.
Controls whether console log messages are sent to stderr or stdout. By default this is set to warn which represents a change in behavior from previous versions, even though it may be more intuitive. Setting log-level-stderr=off will preserve the old behavior. Suggested by Sascha Biberhofer.
This commit is contained in:
@@ -445,6 +445,28 @@ my $oConfigHelpData =
|
||||
"* trace - Log trace (very verbose debugging), debug, info, warnings, and errors"
|
||||
},
|
||||
|
||||
# LOG-LEVEL-STDERR Option Help
|
||||
#---------------------------------------------------------------------------------------------------------------------------
|
||||
'log-level-stderr' =>
|
||||
{
|
||||
section => 'log',
|
||||
summary =>
|
||||
"Level for stderr logging.",
|
||||
description =>
|
||||
"Specifies which log levels must will be output to stderr rather than stdout (specified by log-level-console). " .
|
||||
"The timestamp and process will not be output to stderr.\n" .
|
||||
"\n" .
|
||||
"The following log levels are supported:\n" .
|
||||
"\n" .
|
||||
"* off - No logging at all (not recommended)\n" .
|
||||
"* error - Log only errors\n" .
|
||||
"* warn - Log warnings and errors\n" .
|
||||
"* info - Log info, warnings, and errors\n" .
|
||||
"* detail - Log detail, info, warnings, and errors\n" .
|
||||
"* debug - Log debug, detail, info, warnings, and errors\n" .
|
||||
"* trace - Log trace (very verbose debugging), debug, info, warnings, and errors"
|
||||
},
|
||||
|
||||
# LOG-PATH Option Help
|
||||
#---------------------------------------------------------------------------------------------------------------------------
|
||||
'log-path' =>
|
||||
@@ -767,6 +789,7 @@ my $oConfigHelpData =
|
||||
'lock-path' => 'section',
|
||||
'log-level-console' => 'section',
|
||||
'log-level-file' => 'section',
|
||||
'log-level-stderr' => 'section',
|
||||
'log-path' => 'section',
|
||||
'neutral-umask' => 'section',
|
||||
'protocol-timeout' => 'section',
|
||||
@@ -803,6 +826,7 @@ my $oConfigHelpData =
|
||||
'lock-path' => 'section',
|
||||
'log-level-console' => 'section',
|
||||
'log-level-file' => 'section',
|
||||
'log-level-stderr' => 'section',
|
||||
'log-path' => 'section',
|
||||
'neutral-umask' => 'section',
|
||||
'protocol-timeout' => 'section',
|
||||
@@ -867,6 +891,7 @@ my $oConfigHelpData =
|
||||
'lock-path' => 'section',
|
||||
'log-level-console' => 'section',
|
||||
'log-level-file' => 'section',
|
||||
'log-level-stderr' => 'section',
|
||||
'log-path' => 'section',
|
||||
'manifest-save-threshold' => 'section',
|
||||
'neutral-umask' => 'section',
|
||||
@@ -940,6 +965,7 @@ my $oConfigHelpData =
|
||||
'db-user' => 'section',
|
||||
'log-level-console' => 'section',
|
||||
'log-level-file' => 'section',
|
||||
'log-level-stderr' => 'section',
|
||||
'log-path' => 'section',
|
||||
'neutral-umask' => 'section',
|
||||
'online' => 'default',
|
||||
@@ -971,6 +997,7 @@ my $oConfigHelpData =
|
||||
'lock-path' => 'section',
|
||||
'log-level-console' => 'section',
|
||||
'log-level-file' => 'section',
|
||||
'log-level-stderr' => 'section',
|
||||
'log-path' => 'section',
|
||||
'repo-path' => 'section',
|
||||
'retention-archive' => 'section',
|
||||
@@ -1023,6 +1050,7 @@ my $oConfigHelpData =
|
||||
'lock-path' => 'section',
|
||||
'log-level-console' => 'section',
|
||||
'log-level-file' => 'section',
|
||||
'log-level-stderr' => 'section',
|
||||
'log-path' => 'section',
|
||||
|
||||
# OUTPUT Option Help
|
||||
@@ -1108,6 +1136,7 @@ my $oConfigHelpData =
|
||||
'lock-path' => 'section',
|
||||
'log-level-console' => 'section',
|
||||
'log-level-file' => 'section',
|
||||
'log-level-stderr' => 'section',
|
||||
'log-path' => 'section',
|
||||
'neutral-umask' => 'section',
|
||||
'process-max' => 'section',
|
||||
@@ -1227,6 +1256,7 @@ my $oConfigHelpData =
|
||||
'lock-path' => 'section',
|
||||
'log-level-console' => 'section',
|
||||
'log-level-file' => 'section',
|
||||
'log-level-stderr' => 'section',
|
||||
'log-path' => 'section',
|
||||
'repo-path' => 'section',
|
||||
'stanza' => 'default'
|
||||
@@ -1274,6 +1304,7 @@ my $oConfigHelpData =
|
||||
'lock-path' => 'section',
|
||||
'log-level-console' => 'section',
|
||||
'log-level-file' => 'section',
|
||||
'log-level-stderr' => 'section',
|
||||
'log-path' => 'section',
|
||||
'repo-path' => 'section',
|
||||
'stanza' => 'default'
|
||||
|
Reference in New Issue
Block a user