Chromium Code Reviews| Index: net/tools/testserver/run_testserver.cc |
| diff --git a/net/tools/testserver/run_testserver.cc b/net/tools/testserver/run_testserver.cc |
| index e92dfb248b76944379cfcfcde0bd48e8472e9a4e..d34a64c2cad0604d809dbf4b71ee914b83e49177 100644 |
| --- a/net/tools/testserver/run_testserver.cc |
| +++ b/net/tools/testserver/run_testserver.cc |
| @@ -6,6 +6,7 @@ |
| #include "base/at_exit.h" |
| #include "base/command_line.h" |
| +#include "base/file_path.h" |
| #include "base/logging.h" |
| #include "base/message_loop.h" |
| #include "net/test/test_server.h" |
| @@ -23,6 +24,11 @@ int main(int argc, const char* argv[]) { |
| CommandLine::Init(argc, argv); |
| CommandLine* command_line = CommandLine::ForCurrentProcess(); |
| + (void)logging::InitLogging(FILE_PATH_LITERAL("testserver.log"), |
|
cbentzel
2010/11/17 22:32:50
Do this in a separate CL?
|
| + logging::LOG_TO_BOTH_FILE_AND_SYSTEM_DEBUG_LOG, |
| + logging::LOCK_LOG_FILE, |
| + logging::APPEND_TO_OLD_LOG_FILE); |
| + |
| if (command_line->GetSwitchCount() == 0 || |
| command_line->HasSwitch("help")) { |
| PrintUsage(); |