

Stackdriver Logging comes to Cloud Code in Visual Studio Code
source link: https://chinagdg.org/2019/11/stackdriver-logging-comes-to-cloud-code-in-visual-studio-code/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.


Stackdriver Logging comes to Cloud Code in Visual Studio Code
Source: Stackdriver Logging comes to Cloud Code in Visual Studio Code from Google Cloud
A big part of troubleshooting your code is inspecting the logs. At Google Cloud, we offer Cloud Code, a plugin to popular integrated development environments (IDEs) to help you write, deploy, and debug cloud-native applications quickly and easily. Stackdriver Logging, meanwhile, is the go-to tool for all Google Cloud Platform (GCP) logs, providing advanced searching and filtering as well as detailed information about them.
But deciphering logs can be tedious. Even worse, you need to leave your IDE to access Stackdriver Logging. Now, with the Cloud Code plugin, you can access your Stackdriver logs in the Visual Studio Code IDE directly! The new Cloud Code logs viewer helps you simplify and streamline the diagnostics process with three new features:
- Integration with Stackdriver Logging
- A customizable logs viewer
- Kubernetes-specific filtering
View Stackdriver logs in VS Code
With the new Cloud Code logs viewer you can access your Stackdriver logs in VS Code directly. Simply open the logs viewer and Cloud Code displays all your Stackdriver logs. You can edit the filters just like you do in Stackdriver, and if you would like to see more detailed information you can easily return to Stackdriver Logging from the IDE with your filters in place.

In contrast to kubectl logs, Stackdriver logs are natively integrated with Google Cloud. Learn more about Stackdriver Logging here.
Improved log exploration
The new logs viewer provides a structured logs viewing experience that has several new features including: severity filters, colorized output, streaming capabilities, and timezone conversions. The new logs viewer presents an organized view of logs and lets you filter and search your logs from within VS Code. Think of the logs viewer as your first stop for all of your logs without having to leave your IDE. The logs viewer will supports kubectl logs.

Kubernetes-specific filtering
Kubernetes logs are complex. The new logs viewer lets you filter on Kubernetes-specific elements including: namespace, deployment, pod, container, and keyword. This allows you to easily see logs for specific pod or all the logs from a given deployment, helping you so you can navigate complex logs more effectively.
In addition to manual filtering, you can access the logs viewer from the Cloud Code resource browser and use the tree view to filter your logs. This way, you can locate a resource with the context around it. The tree view shows status and context information that can help you find important logs such as unhealthy or orphaned pods.

Get started
Accessing Stackdriver Logs in VS Code with Cloud Code brings your logs closer to your code, with advanced filtering options that help you stay focused and in your IDE. To learn more, check out this guide to getting started with the Log Viewer. If you are new to Cloud Code or Stackdriver Logging, start by learning how to install Cloud Code and set up Stackdriver. If you are already using Cloud Code and Stackdriver Logging, there are no prerequisites to get started—just open the new logs viewer with Cloud Code and you’re ready to go!
Recommend
-
150
October 2017 (version 1.18) Update 1.18.1: The update addresses these issues. Downloads:
-
189
Out of the blue, Microsoft jumps into the editor wars with an incredible offering that gives Sublime Text an overwhelming run for its money. In fact, it just might surpass it! So come along, as I demonstrate the ins, the outs, the tips, the tech...
-
210
Page not found – theinfogrid.com
-
183
Visual Studio和VS Code中的Rust
-
36
除非特别声明,此文章内容采用知识共享署名 3.0许可,代码示例采用Apache 2.0许可。更多细节请查看我们的服务条款。
-
106
See what is new in the Visual Studio Code April 2018 Release (1.23)
-
117
June 2018 (version 1.25) Downloads: Windows | Mac | Linu...
-
14
Google Cloud Stackdriver Logging Written by Mona Dadoun 2018-08-23 You're now able to ship your Kafka monitori...
-
7
Productivity comes to .NET MAUI in Visual Studio 2022 Maddy Montaquila
-
7
.NET 7 comes to Azure Functions & Visual Studio 2022 Melony...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK