Package com.google.cloud.logging.testing
package com.google.cloud.logging.testing
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:
-
ClassDescriptionUtility to create a remote logging configuration for testing.