diff options
author | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-16 06:11:30 +0000 |
---|---|---|
committer | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-16 06:11:30 +0000 |
commit | e41c1da3c9b54efaa715b86aeec81a50ee86bfd4 (patch) | |
tree | 03664ac03d557d81935ee426431fd7b38379c2ed /courgette/courgette_tool.cc | |
parent | 2df7b7b70ea0b50053d0e5d38446ebc1aa6bf0b4 (diff) | |
download | chromium_src-e41c1da3c9b54efaa715b86aeec81a50ee86bfd4.zip chromium_src-e41c1da3c9b54efaa715b86aeec81a50ee86bfd4.tar.gz chromium_src-e41c1da3c9b54efaa715b86aeec81a50ee86bfd4.tar.bz2 |
Call InitLogging() for courgette.
BUG=None
TEST=Manually
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66208
Review URL: http://codereview.chromium.org/5038002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66236 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'courgette/courgette_tool.cc')
-rw-r--r-- | courgette/courgette_tool.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/courgette/courgette_tool.cc b/courgette/courgette_tool.cc index 30714d3..9a0a5ea 100644 --- a/courgette/courgette_tool.cc +++ b/courgette/courgette_tool.cc @@ -8,6 +8,7 @@ #include "base/at_exit.h" #include "base/basictypes.h" #include "base/command_line.h" +#include "base/file_path.h" #include "base/file_util.h" #include "base/logging.h" #include "base/string_number_conversions.h" @@ -345,6 +346,12 @@ int main(int argc, const char* argv[]) { CommandLine::Init(argc, argv); const CommandLine& command_line = *CommandLine::ForCurrentProcess(); + (void)logging::InitLogging(FILE_PATH_LITERAL("courgette.log"), + logging::LOG_TO_BOTH_FILE_AND_SYSTEM_DEBUG_LOG, + logging::LOCK_LOG_FILE, + logging::APPEND_TO_OLD_LOG_FILE); + logging::SetMinLogLevel(logging::LOG_VERBOSE); + bool cmd_dis = command_line.HasSwitch("dis"); bool cmd_asm = command_line.HasSwitch("asm"); bool cmd_disadj = command_line.HasSwitch("disadj"); |