From 5e3f7c2124c2ebf1b83effac1eb843d905112cc9 Mon Sep 17 00:00:00 2001 From: "akalin@chromium.org" Date: Fri, 21 Jun 2013 21:15:33 +0000 Subject: 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 --- net/disk_cache/stress_cache.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'net/disk_cache') diff --git a/net/disk_cache/stress_cache.cc b/net/disk_cache/stress_cache.cc index 65eb01a..0da9845 100644 --- a/net/disk_cache/stress_cache.cc +++ b/net/disk_cache/stress_cache.cc @@ -270,9 +270,9 @@ int main(int argc, const char* argv[]) { logging::LogEventProvider::Initialize(kStressCacheTraceProviderName); #else CommandLine::Init(argc, argv); - logging::InitLogging(NULL, logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG, - logging::LOCK_LOG_FILE, logging::DELETE_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); #endif // Some time for the memory manager to flush stuff. -- cgit v1.1