summaryrefslogtreecommitdiff
path: root/chromium/fuchsia/base/init_logging.h
blob: c08ff6e1cdc6d4d94f9b4cd890d9e6f80ce80a38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright 2019 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.

#ifndef FUCHSIA_BASE_INIT_LOGGING_H_
#define FUCHSIA_BASE_INIT_LOGGING_H_

namespace base {
class CommandLine;
}

namespace cr_fuchsia {

// These are intended to match those in content_switches.cc.
extern const char kEnableLogging[];
extern const char kLogFile[];

// Configures logging for the current process based on the supplied
// |command_line|. Returns false if a logging output stream could not
// be created.
bool InitLoggingFromCommandLine(const base::CommandLine& command_line);

}  // namespace cr_fuchsia

#endif  // FUCHSIA_BASE_INIT_LOGGING_H_