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:
- Google Cloud Java tools for testing
-
Class Summary Class Description RemoteLoggingHelper Utility to create a remote logging configuration for testing. -
Exception Summary Exception Description RemoteLoggingHelper.LoggingHelperException