aboutsummaryrefslogtreecommitdiff
path: root/absl/log/internal/log_message.h
diff options
context:
space:
mode:
authorAndy Getzendanner <durandal@google.com>2022-11-16 14:47:18 -0800
committerCopybara-Service <copybara-worker@google.com>2022-11-16 14:48:00 -0800
commit0c048353d2e7347f148228d785c3f0a8c81e2223 (patch)
tree2c6c5a87eccd672de83b8c631c8dcd834c54883e /absl/log/internal/log_message.h
parentae52431653d1d2815820680d4539e749f53b7bc7 (diff)
downloadabseil-0c048353d2e7347f148228d785c3f0a8c81e2223.tar.gz
abseil-0c048353d2e7347f148228d785c3f0a8c81e2223.tar.bz2
abseil-0c048353d2e7347f148228d785c3f0a8c81e2223.zip
Minor formatting changes in preparation for structured logging...
PiperOrigin-RevId: 489044912 Change-Id: I1657dd60bcfa2d0fb4b889f27f4f237325b73f08
Diffstat (limited to 'absl/log/internal/log_message.h')
-rw-r--r--absl/log/internal/log_message.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/absl/log/internal/log_message.h b/absl/log/internal/log_message.h
index 992bb630..8868f8c8 100644
--- a/absl/log/internal/log_message.h
+++ b/absl/log/internal/log_message.h
@@ -37,7 +37,6 @@
#include "absl/base/config.h"
#include "absl/base/internal/errno_saver.h"
#include "absl/base/log_severity.h"
-#include "absl/log/internal/config.h"
#include "absl/log/internal/nullguard.h"
#include "absl/log/log_entry.h"
#include "absl/log/log_sink.h"
@@ -234,9 +233,10 @@ class StringifySink final {
};
// Note: the following is declared `ABSL_ATTRIBUTE_NOINLINE`
-template <typename T,
- typename std::enable_if<strings_internal::HasAbslStringify<T>::value,
- int>::type>
+template <
+ typename T,
+ typename std::enable_if<strings_internal::HasAbslStringify<T>::value,
+ int>::type>
LogMessage& LogMessage::operator<<(const T& v) {
StringifySink sink(*this);
// Replace with public API.
@@ -245,9 +245,10 @@ LogMessage& LogMessage::operator<<(const T& v) {
}
// Note: the following is declared `ABSL_ATTRIBUTE_NOINLINE`
-template <typename T,
- typename std::enable_if<!strings_internal::HasAbslStringify<T>::value,
- int>::type>
+template <
+ typename T,
+ typename std::enable_if<!strings_internal::HasAbslStringify<T>::value,
+ int>::type>
LogMessage& LogMessage::operator<<(const T& v) {
stream_ << log_internal::NullGuard<T>().Guard(v);
return *this;
@@ -299,7 +300,8 @@ extern template LogMessage& LogMessage::operator<<(const float& v);
extern template LogMessage& LogMessage::operator<<(const double& v);
extern template LogMessage& LogMessage::operator<<(const bool& v);
extern template LogMessage& LogMessage::operator<<(const std::string& v);
-extern template LogMessage& LogMessage::operator<<(const absl::string_view& v);
+extern template LogMessage& LogMessage::operator<<(
+ const absl::string_view& v);
// `LogMessageFatal` ensures the process will exit in failure after logging this
// message.