public class AddLoggingHandler extends Object
Logger to log entries to Stackdriver
Logging. The snippet shows how to install a Stackdriver Logging handler using
LoggingHandler.addHandler(Logger, LoggingHandler). Notice that
this could also be done through the logging.properties file, adding the following line:
com.google.cloud.examples.logging.snippets.AddLoggingHandler.handlers=com.google.cloud.logging.LoggingHandler
| Constructor and Description |
|---|
AddLoggingHandler() |
public static void main(String... args)
Copyright © 2016 Google. All rights reserved.