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