Class | Description |
---|---|
RemoteLoggingHelper |
Utility to create a remote logging configuration for testing.
|
Exception | Description |
---|---|
RemoteLoggingHelper.LoggingHelperException |
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");
Copyright © 2019 Google LLC. All rights reserved.