diff options
author | stevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-30 22:09:42 +0000 |
---|---|---|
committer | stevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-30 22:09:42 +0000 |
commit | 2f48d50ceae5e473d45549d4c5a9a50aa50ee48f (patch) | |
tree | 474be02fa6656a12c2c681c1393cfc925abed297 /chromeos/network/network_event_log.h | |
parent | 31e6b97b8dc621b34386d2f393734263426c665a (diff) | |
download | chromium_src-2f48d50ceae5e473d45549d4c5a9a50aa50ee48f.zip chromium_src-2f48d50ceae5e473d45549d4c5a9a50aa50ee48f.tar.gz chromium_src-2f48d50ceae5e473d45549d4c5a9a50aa50ee48f.tar.bz2 |
Add LOG_LEVEL_USER to NetworkEventLog
This will make it easier to view user initiated events in the event log.
BUG=none
TBR=gauravsh@chromium.org
Review URL: https://codereview.chromium.org/16237002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203239 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/network/network_event_log.h')
-rw-r--r-- | chromeos/network/network_event_log.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/chromeos/network/network_event_log.h b/chromeos/network/network_event_log.h index c5addb8..3d47698 100644 --- a/chromeos/network/network_event_log.h +++ b/chromeos/network/network_event_log.h @@ -31,8 +31,9 @@ enum StringOrder { // Used to set the detail level for logging. enum LogLevel { LOG_LEVEL_ERROR = 0, - LOG_LEVEL_EVENT = 1, - LOG_LEVEL_DEBUG = 2 + LOG_LEVEL_USER = 1, + LOG_LEVEL_EVENT = 2, + LOG_LEVEL_DEBUG = 3 }; // Default log level. @@ -93,7 +94,11 @@ CHROMEOS_EXPORT std::string ValueAsString(const base::Value& value); #define NET_LOG_ERROR(event, desc) NET_LOG_LEVEL( \ ::chromeos::network_event_log::LOG_LEVEL_ERROR, event, desc) -// Important events, e.g. connection request +// User initiated events, e.g. connection request +#define NET_LOG_USER(event, desc) NET_LOG_LEVEL( \ + ::chromeos::network_event_log::LOG_LEVEL_USER, event, desc) + +// Important events, e.g. state updates #define NET_LOG_EVENT(event, desc) NET_LOG_LEVEL( \ ::chromeos::network_event_log::LOG_LEVEL_EVENT, event, desc) |