Suppress ERROR messages with log-severity=disable (issue #2581)

Also expose FATAL severity level.
This commit is contained in:
Marshall Greenblatt
2019-01-29 14:53:17 -05:00
parent f962b5863e
commit 995dd0ba19
4 changed files with 23 additions and 4 deletions

View File

@@ -115,7 +115,13 @@ typedef enum {
LOGSEVERITY_ERROR,
///
// Completely disable logging.
// FATAL logging.
///
LOGSEVERITY_FATAL,
///
// Disable logging to file for all messages, and to stderr for messages with
// severity less than FATAL.
///
LOGSEVERITY_DISABLE = 99
} cef_log_severity_t;
@@ -290,9 +296,10 @@ typedef struct _cef_settings_t {
///
// The log severity. Only messages of this severity level or higher will be
// logged. Also configurable using the "log-severity" command-line switch with
// a value of "verbose", "info", "warning", "error", "error-report" or
// "disable".
// logged. When set to DISABLE no messages will be written to the log file,
// but FATAL messages will still be output to stderr. Also configurable using
// the "log-severity" command-line switch with a value of "verbose", "info",
// "warning", "error", "fatal" or "disable".
///
cef_log_severity_t log_severity;