summaryrefslogtreecommitdiff
path: root/absl/log/BUILD.bazel
diff options
context:
space:
mode:
authorGravatar Andy Getzendanner <durandal@google.com>2022-11-17 12:17:17 -0800
committerGravatar Copybara-Service <copybara-worker@google.com>2022-11-17 12:18:03 -0800
commitebab79b5783b3298ee2f31251174c660c322d7ef (patch)
tree1b5309a16ca6e3c871b9df96d10a036f73cdc3eb /absl/log/BUILD.bazel
parent0c048353d2e7347f148228d785c3f0a8c81e2223 (diff)
Release structured logging.
This stores the operands to LOG (and CHECK) as separate fields in a serialized protobuf. The protobuf format is not yet published. PiperOrigin-RevId: 489275799 Change-Id: I86d83671a6b1feb2bddd5bee51552907897ca8eb
Diffstat (limited to 'absl/log/BUILD.bazel')
-rw-r--r--absl/log/BUILD.bazel29
1 files changed, 29 insertions, 0 deletions
diff --git a/absl/log/BUILD.bazel b/absl/log/BUILD.bazel
index 3e9d1421..733b0c3f 100644
--- a/absl/log/BUILD.bazel
+++ b/absl/log/BUILD.bazel
@@ -196,6 +196,18 @@ cc_library(
],
)
+cc_library(
+ name = "structured",
+ hdrs = ["structured.h"],
+ copts = ABSL_DEFAULT_COPTS,
+ linkopts = ABSL_DEFAULT_LINKOPTS,
+ deps = [
+ "//absl/base:config",
+ "//absl/log/internal:structured",
+ "//absl/strings",
+ ],
+)
+
# Test targets
cc_test(
name = "basic_log_test",
@@ -458,6 +470,23 @@ cc_test(
],
)
+cc_test(
+ name = "structured_test",
+ size = "small",
+ srcs = ["structured_test.cc"],
+ copts = ABSL_TEST_COPTS,
+ linkopts = ABSL_DEFAULT_LINKOPTS,
+ deps = [
+ ":log",
+ ":scoped_mock_log",
+ ":structured",
+ "//absl/base:core_headers",
+ "//absl/log/internal:test_helpers",
+ "//absl/log/internal:test_matchers",
+ "@com_google_googletest//:gtest_main",
+ ],
+)
+
cc_binary(
name = "log_benchmark",
testonly = 1,