Add -L/--log-level command line option to repmgr

Overrides any setting in the config file. This will replace the
-v/--verbose option.
This commit is contained in:
Ian Barwick
2015-11-13 20:54:58 +09:00
parent d62aaeedd0
commit e0cbdd5b31
4 changed files with 32 additions and 6 deletions

5
log.h
View File

@@ -112,12 +112,15 @@ __attribute__((format(PG_PRINTF_ATTRIBUTE, 3, 4)));
#endif
int detect_log_level(const char *level);
/* Logger initialisation and shutdown */
bool logger_shutdown(void);
bool logger_init(t_configuration_options * opts, const char *ident,
const char *level, const char *facility);
bool logger_shutdown(void);
void logger_min_verbose(int minimum);
void log_hint(const char *fmt, ...);