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.options().service();
  

Format resource names to avoid name clashes:

 String metricName = RemoteLoggingHelper.formatForTest("test-metric");
  
See Also:
gcloud-java tools for testing

Copyright © 2016 Google. All rights reserved.