1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
base / logging / rust_log_integration.cc [blame]
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/logging/rust_log_integration.h"
#include "base/logging.h"
#include "base/logging/log_severity.h"
namespace logging {
namespace internal {
BASE_EXPORT void print_rust_log(const char* msg,
const char* file,
int line,
LogSeverity severity,
bool verbose) {
// TODO(danakj): If `verbose` make the log equivalent to VLOG instead of LOG.
logging::LogMessage log_message(file, line, severity);
log_message.stream() << msg;
}
} // namespace internal
} // namespace logging