diff options
author | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-21 21:15:33 +0000 |
---|---|---|
committer | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-21 21:15:33 +0000 |
commit | 5e3f7c2124c2ebf1b83effac1eb843d905112cc9 (patch) | |
tree | e5118c79feba3baaf5081e9ed349e104aff36986 /cloud_print | |
parent | f25eb36e3344223ffcabcf96d54cf000862d6088 (diff) | |
download | chromium_src-5e3f7c2124c2ebf1b83effac1eb843d905112cc9.zip chromium_src-5e3f7c2124c2ebf1b83effac1eb843d905112cc9.tar.gz chromium_src-5e3f7c2124c2ebf1b83effac1eb843d905112cc9.tar.bz2 |
Define a LoggingSettings struct to use for InitLogging()
Update all callers of InitLogging() to use LoggingSettings, only
setting fields that need a non-default value.
Turn LoggingDestination enum into a bit field and define add
LOG_DEFAULT and LOG_ALL constants.
Fix erroneous comment saying that the default was to not lock
the log file.
BUG=247594
TBR=brettw@chromium.org, cpu@chromium.org, gene@chromium.org, jam@chromium.org, rch@chromium.org, scherkus@chromium.org, sergeyu@chromium.org, sky@chromium.org, tkent@chromium.org, yfriedman@chromium.org, zea@chromium.org
Review URL: https://codereview.chromium.org/16519003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207920 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cloud_print')
-rw-r--r-- | cloud_print/gcp20/prototype/gcp20_device.cc | 8 | ||||
-rw-r--r-- | cloud_print/service/win/cloud_print_service.cc | 8 |
2 files changed, 6 insertions, 10 deletions
diff --git a/cloud_print/gcp20/prototype/gcp20_device.cc b/cloud_print/gcp20/prototype/gcp20_device.cc index f210063..2ff1a2d 100644 --- a/cloud_print/gcp20/prototype/gcp20_device.cc +++ b/cloud_print/gcp20/prototype/gcp20_device.cc @@ -12,11 +12,9 @@ int main(int argc, char* argv[]) { CommandLine::Init(argc, argv); - logging::InitLogging(NULL, - logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG, - logging::LOCK_LOG_FILE, - logging::APPEND_TO_OLD_LOG_FILE, - logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS); + logging::LoggingSettings settings; + settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG; + logging::InitLogging(settings); DnsSdServer dns_sd_server; dns_sd_server.Start(); diff --git a/cloud_print/service/win/cloud_print_service.cc b/cloud_print/service/win/cloud_print_service.cc index 5a3c502..e93ad05 100644 --- a/cloud_print/service/win/cloud_print_service.cc +++ b/cloud_print/service/win/cloud_print_service.cc @@ -401,11 +401,9 @@ int main(int argc, char** argv) { CommandLine::Init(argc, argv); base::AtExitManager at_exit; - logging::InitLogging(NULL, - logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG, - logging::LOCK_LOG_FILE, - logging::APPEND_TO_OLD_LOG_FILE, - logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS); + logging::LoggingSettings settings; + settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG; + logging::InitLogging(settings); logging::SetMinLogLevel( CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableLogging) ? |