Commit e94384b7 authored by Peter Hanspers's avatar Peter Hanspers Committed by Commit Bot

Adding LS_NONE to LoggingSeverity

Bug: 804870
Change-Id: I7ba8e6a61eccfb1ea9f4096cb2839d7a9f71c7af
Reviewed-on: https://chromium-review.googlesource.com/c/1151108
Commit-Queue: Peter Hanspers <peterhanspers@chromium.org>
Reviewed-by: default avatarHenrik Grunell <grunell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#599615}
parent c100a280
...@@ -51,6 +51,7 @@ std::string ErrorName(int err, const ConstantLabel* err_table); ...@@ -51,6 +51,7 @@ std::string ErrorName(int err, const ConstantLabel* err_table);
// in debug builds. // in debug builds.
// LS_WARNING: Something that may warrant investigation. // LS_WARNING: Something that may warrant investigation.
// LS_ERROR: Something that should not have occurred. // LS_ERROR: Something that should not have occurred.
// LS_NONE: Set this as minimum severity to disable logging.
// Note that LoggingSeverity is mapped over to chromiums verbosity levels where // Note that LoggingSeverity is mapped over to chromiums verbosity levels where
// anything lower than or equal to the current verbosity level is written to // anything lower than or equal to the current verbosity level is written to
// file which is the opposite of logging severity in libjingle where higher // file which is the opposite of logging severity in libjingle where higher
...@@ -60,6 +61,7 @@ std::string ErrorName(int err, const ConstantLabel* err_table); ...@@ -60,6 +61,7 @@ std::string ErrorName(int err, const ConstantLabel* err_table);
// TODO(tommi): To keep things simple, we should just use the same values for // TODO(tommi): To keep things simple, we should just use the same values for
// these constants as Chrome does. // these constants as Chrome does.
enum LoggingSeverity { enum LoggingSeverity {
LS_NONE = 0,
LS_ERROR = 1, LS_ERROR = 1,
LS_WARNING = 2, LS_WARNING = 2,
LS_INFO = 3, LS_INFO = 3,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment