Commit 2468b189 by Andy Getzendanner Committed by Copybara-Service

Use ABSL_LOG instead of LOG in absl::LogStreamer.

PiperOrigin-RevId: 496112752
Change-Id: I0a7a8854a642f63ddd3ba67b9268bbb0803118e9
parent 71927b43
...@@ -186,7 +186,7 @@ cc_library( ...@@ -186,7 +186,7 @@ cc_library(
copts = ABSL_DEFAULT_COPTS, copts = ABSL_DEFAULT_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS, linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [ deps = [
":log", ":absl_log",
"//absl/base:config", "//absl/base:config",
"//absl/base:log_severity", "//absl/base:log_severity",
"//absl/strings", "//absl/strings",
......
...@@ -604,7 +604,7 @@ absl_cc_library( ...@@ -604,7 +604,7 @@ absl_cc_library(
${ABSL_DEFAULT_LINKOPTS} ${ABSL_DEFAULT_LINKOPTS}
DEPS DEPS
absl::config absl::config
absl::log absl::absl_log
absl::log_severity absl::log_severity
absl::optional absl::optional
absl::strings absl::strings
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#include "absl/base/config.h" #include "absl/base/config.h"
#include "absl/base/log_severity.h" #include "absl/base/log_severity.h"
#include "absl/log/log.h" #include "absl/log/absl_log.h"
#include "absl/strings/internal/ostringstream.h" #include "absl/strings/internal/ostringstream.h"
#include "absl/strings/string_view.h" #include "absl/strings/string_view.h"
#include "absl/types/optional.h" #include "absl/types/optional.h"
...@@ -99,7 +99,7 @@ class LogStreamer final { ...@@ -99,7 +99,7 @@ class LogStreamer final {
that.stream_.reset(); that.stream_.reset();
} }
LogStreamer& operator=(LogStreamer&& that) { LogStreamer& operator=(LogStreamer&& that) {
LOG_IF(LEVEL(severity_), stream_).AtLocation(file_, line_) << buf_; ABSL_LOG_IF(LEVEL(severity_), stream_).AtLocation(file_, line_) << buf_;
severity_ = that.severity_; severity_ = that.severity_;
file_ = std::move(that.file_); file_ = std::move(that.file_);
line_ = that.line_; line_ = that.line_;
...@@ -114,7 +114,7 @@ class LogStreamer final { ...@@ -114,7 +114,7 @@ class LogStreamer final {
// //
// Logs this LogStreamer's buffered content as if by LOG. // Logs this LogStreamer's buffered content as if by LOG.
~LogStreamer() { ~LogStreamer() {
LOG_IF(LEVEL(severity_), stream_.has_value()).AtLocation(file_, line_) ABSL_LOG_IF(LEVEL(severity_), stream_.has_value()).AtLocation(file_, line_)
<< buf_; << buf_;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment