Send feedback
Package com.google.cloud.logging.testing (3.16.2)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.16.2 keyboard_arrow_down
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
Classes
Utility to create a remote logging configuration for testing. Logging options can be obtained via
the #getOptions() method. Returned options have custom LoggingOptions#getRetrySettings() : RetrySettings#getMaxRetryDelay() is 30000
,
RetrySettings#getTotalTimeout() is 120000
and RetrySettings#getInitialRetryDelay() is 250
.
Exceptions
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-09 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?