diff options
author | mmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-03 15:08:44 +0000 |
---|---|---|
committer | mmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-03 15:08:44 +0000 |
commit | 73f0934327ea3d847e3a6bccc1229b2992741398 (patch) | |
tree | 816217fdda7436110ccc5f01bbf606170cd73d74 /chrome/common | |
parent | c40520ee3eb467320be787111bdcb180fe27dbdd (diff) | |
download | chromium_src-73f0934327ea3d847e3a6bccc1229b2992741398.zip chromium_src-73f0934327ea3d847e3a6bccc1229b2992741398.tar.gz chromium_src-73f0934327ea3d847e3a6bccc1229b2992741398.tar.bz2 |
Add a command line option to set the minimum logging
level used by the NetLog.
BUG=80851
TEST=none
Review URL: http://codereview.chromium.org/6893131
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83888 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/chrome_switches.cc | 11 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 1 |
2 files changed, 9 insertions, 3 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index 0160969..b2c1f21 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -348,9 +348,6 @@ const char kDomAutomationController[] = "dom-automation"; // scripts. const char kDumpHistogramsOnExit[] = "dump-histograms-on-exit"; -// Enable displaying net log events on the command line. -extern const char kLogNetLog[] = "log-net-log"; - // Enable gpu-accelerated 2d canvas. const char kEnableAccelerated2dCanvas[] = "enable-accelerated-2d-canvas"; @@ -637,6 +634,10 @@ const char kLoadExtension[] = "load-extension"; // http://crosbug.com/12295 and http://crosbug.com/12304 const char kLoadOpencryptoki[] = "load-opencryptoki"; +// Enable displaying net log events on the command line, or writing the events +// to a separate file if a file name is given. +const char kLogNetLog[] = "log-net-log"; + // Uninstall an extension with the specified extension id. const char kUninstallExtension[] = "uninstall-extension"; @@ -681,6 +682,10 @@ const char kNaClBrokerProcess[] = "nacl-broker"; // Causes the Native Client process to display a dialog on launch. const char kNaClStartupDialog[] = "nacl-startup-dialog"; +// Sets the base logging level for the net log. Log 0 logs the most data. +// Intended primarily for use with --log-net-log. +const char kNetLogLevel[] = "net-log-level"; + // Use the latest incarnation of the new tab page. const char kNewTabPage4[] = "new-tab-page-4"; diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h index 19b97ad..db116c5 100644 --- a/chrome/common/chrome_switches.h +++ b/chrome/common/chrome_switches.h @@ -195,6 +195,7 @@ extern const char kNaClDebugIP[]; extern const char kNaClDebugPorts[]; extern const char kNaClBrokerProcess[]; extern const char kNaClStartupDialog[]; +extern const char kNetLogLevel[]; extern const char kNewTabPage4[]; extern const char kNoDefaultBrowserCheck[]; extern const char kNoEvents[]; |