Skip navigation links

Package com.google.cloud.logging.testing

A testing helper for Cloud Logging.

See: Description

Package com.google.cloud.logging.testing Description

A testing helper for Cloud Logging.

A simple usage example:

Before the test:


 RemoteLoggingHelper helper = RemoteLoggingHelper.create();
 Logging logging = helper.getOptions().getService();
 

Format resource names to avoid name clashes:


 String metricName = RemoteLoggingHelper.formatForTest("test-metric");
 
See Also:
Google Cloud Java tools for testing
Skip navigation links

Copyright © 2023 Google LLC. All rights reserved.