feat: bring --enable-logging functionality in line with Chromium (#25089)

Co-authored-by: Jeremy Rose <jeremya@chromium.org>
This commit is contained in:
Charles Kerr 2021-06-17 16:17:25 -05:00 committed by GitHub
parent c841247815
commit 8ccab4ce91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 553 additions and 54 deletions

22
shell/common/logging.h Normal file
View file

@ -0,0 +1,22 @@
// Copyright (c) 2021 Slack Technologies, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_COMMON_LOGGING_H_
#define SHELL_COMMON_LOGGING_H_
namespace base {
class CommandLine;
class FilePath;
} // namespace base
namespace logging {
void InitElectronLogging(const base::CommandLine& command_line,
bool is_preinit);
base::FilePath GetLogFileName(const base::CommandLine& command_line);
} // namespace logging
#endif // SHELL_COMMON_LOGGING_H_