Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Unified Diff: chrome/test/webdriver/webdriver_logging.cc

Issue 7108037: Revert 88492 - In chromedriver, add /log url to get the contents of the chromedriver log (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/webdriver/webdriver_logging.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/webdriver_logging.cc
===================================================================
--- chrome/test/webdriver/webdriver_logging.cc (revision 88495)
+++ chrome/test/webdriver/webdriver_logging.cc (working copy)
@@ -1,41 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/test/webdriver/webdriver_logging.h"
-
-#include "base/file_path.h"
-#include "base/file_util.h"
-#include "base/logging.h"
-
-namespace {
-
-// Path to the WebDriver log file.
-const FilePath::CharType kLogPath[] = FILE_PATH_LITERAL("chromedriver.log");
-
-} // namespace
-
-namespace webdriver {
-
-void InitWebDriverLogging(int min_log_level) {
- bool success = InitLogging(
- kLogPath,
- logging::LOG_TO_BOTH_FILE_AND_SYSTEM_DEBUG_LOG,
- logging::LOCK_LOG_FILE,
- logging::DELETE_OLD_LOG_FILE,
- logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS);
- if (!success) {
- PLOG(ERROR) << "Unable to initialize logging";
- }
- logging::SetLogItems(false, // enable_process_id
- false, // enable_thread_id
- true, // enable_timestamp
- false); // enable_tickcount
- logging::SetMinLogLevel(min_log_level);
-}
-
-bool GetLogContents(std::string* log_contents) {
- return file_util::ReadFileToString(FilePath(kLogPath), log_contents);
-}
-
-} // namespace webdriver
« no previous file with comments | « chrome/test/webdriver/webdriver_logging.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698