Skip navigation links

Package com.google.cloud.logging.testing

A testing helper for Stackdriver Logging.

See: Description

Package com.google.cloud.logging.testing Description

A testing helper for Stackdriver 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 © 2019 Google LLC. All rights reserved.