| Constructor and Description |
|---|
GcpLogSink(String projectId,
Map<String,String> locationTags,
Map<String,String> customTags,
Collection<String> servicesToExclude)
Retrieves a single instance of GcpLogSink.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes Cloud Logging Client.
|
void |
write(io.grpc.observabilitylog.v1.GrpcLogRecord logProto)
Writes logs to GCP Cloud Logging.
|
public GcpLogSink(String projectId, Map<String,String> locationTags, Map<String,String> customTags, Collection<String> servicesToExclude)
projectId - GCP project id to write logsservicesToExclude - service names for which log entries should not be generated