Skip to content

Commit 4d5c006

Browse files
Add custom_logging_config so different loggers can introduce their own custom log processing logic.
PiperOrigin-RevId: 731967688
1 parent fe20e37 commit 4d5c006

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tensorflow_serving/config/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ serving_proto_library(
8585
srcs = ["logging_config.proto"],
8686
deps = [
8787
":log_collector_config_proto",
88+
"@com_google_protobuf//:cc_wkt_protos",
8889
],
8990
)
9091

tensorflow_serving/config/logging_config.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ syntax = "proto3";
22

33
package tensorflow.serving;
44

5+
import "google/protobuf/any.proto";
56
import "tensorflow_serving/config/log_collector_config.proto";
67

78
option cc_enable_arenas = true;
@@ -26,4 +27,6 @@ message SamplingConfig {
2627
message LoggingConfig {
2728
LogCollectorConfig log_collector_config = 1;
2829
SamplingConfig sampling_config = 2;
30+
// Additional logging config that can be processed by the logger.
31+
google.protobuf.Any custom_logging_config = 3;
2932
}

0 commit comments

Comments
 (0)