Cloud Logging
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Fleet Engine 为其 API 请求和响应载荷提供基本的日志记录服务。您可以使用这些日志来分析、监控和调试应用。如需详细了解 Fleet Engine,请参阅什么是 Fleet Engine 服务?。
Fleet Engine 会将特定于服务的日志发送到 Cloud Logging,以便您可以使用 Google Cloud 控制台日志浏览器、Cloud Logging API 或命令行来访问和分析这些日志。
以下列表介绍了 Cloud Logging 的这些关键方面。
Fleet Engine 日志
Fleet Engine 会将以下信息发送到 Cloud Logging:
如需查看所有可用的日志消息和架构,请参阅 Fleet Engine API 按需行程的日志记录集成参考文档和 Fleet Engine API 预定任务的日志记录集成参考文档。
后续步骤
如需开始使用 Cloud Logging,请参阅设置 Cloud Logging。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-12。
[null,null,["最后更新时间 (UTC):2025-08-12。"],[[["\u003cp\u003eFleet Engine automatically logs API requests, responses, and errors, including those from the Driver SDK, to Cloud Logging for analysis and debugging.\u003c/p\u003e\n"],["\u003cp\u003eYou can access and analyze Fleet Engine logs using the Google Cloud Console Logs Explorer, the Cloud Logging API, or the Google Cloud CLI.\u003c/p\u003e\n"],["\u003cp\u003eCloud Logging offers features for storing, searching, analyzing, monitoring, and alerting on log data, providing insights into your Fleet Engine application's activity.\u003c/p\u003e\n"],["\u003cp\u003eComprehensive logging details, including available log messages and schema, can be found in the Fleet Engine API Logging Integration Reference for on-demand and scheduled tasks.\u003c/p\u003e\n"]]],["Fleet Engine provides logs of API requests and responses to Cloud Logging for analysis, monitoring, and debugging. Cloud Logging offers storage, search, analysis, and monitoring of log data via the Logs Explorer, Cloud Logging API, or Google Cloud CLI. Fleet Engine logs include authenticated REST/gRPC requests/responses, error responses, and Driver SDK interactions. Cloud Logging has usage limits and costs. For more information about log messages and schema, see the specific Fleet Engine API Logging Integration Reference pages. To begin, configure Cloud Logging.\n"],null,["Fleet Engine offers a basic logging service for its API requests and\nresponse payloads. You can use these logs to analyze, monitor, and debug your\napplications. For details about Fleet Engine, see [What is the Fleet\nEngine service?](/maps/documentation/mobility/fleet-engine/essentials).\n\nFleet Engine sends service-specific logs to Cloud Logging, so\nthat you can use the Google Cloud console Logs Explorer, the\nCloud Logging API, or command-line commands to access and analyze them.\nThe following list describes these key aspects of Cloud Logging.\n\n- **Cloud Logging** is a managed service that lets you store, search,\n analyze, monitor, and alert on logging data and events from Google Cloud and\n other sources. For more information, see the [Cloud Logging\n documentation](https://cloud.google.com/logging/docs) and [Cloud platform logs](https://cloud.google.com/logging/docs/api/platform-logs) in\n the Cloud documentation.\n\n- **Logs Explorer** is a tool of the Google Cloud console that\n lets you retrieve, view, and analyze log entries. For details, see [View\n logs by using the Logs Explorer](https://cloud.google.com/logging/docs/view/logs-explorer-interface).\n\n- The **Cloud Logging API** lets you programmatically accomplish\n logging-related tasks, including reading and writing log entries and\n creating log-based metrics. To learn more, see [Cloud Logging API\n overview](https://cloud.google.com/logging/docs/reference/api-overview).\n\n- The **Google Cloud CLI** has a group of commands that provide a command-line\n interface to the Cloud Logging API. For details, see [Google Cloud\n Command Line Interface](https://cloud.google.com/cli) and [gcloud logging](https://cloud.google.com/sdk/gcloud/reference/logging)\n\n| **Note:** Cloud Logging has usage and retention limits. To understand how to manage your logging costs and avoid unexpected charges, see [Google Cloud\n| Observability pricing](https://cloud.google.com/stackdriver/pricing#logging-costs).\n\nFleet Engine logs\n\nFleet Engine sends the following information to\nCloud Logging:\n\n- All Authenticated REST and gRPC requests and responses.\n\n- Error responses.\n\n- Requests, responses, and error messages from calls initiated to\n Fleet Engine by the [Driver SDK](/maps/documentation/mobility/driver-sdk).\n\nFor a list of all available log messages and schema, see the [Fleet Engine API\nLogging Integration Reference for on-demand trips](/maps/documentation/mobility/operations/cloud-logging/reference/tasks/rest) and the [Fleet Engine API\nLogging Integration Reference for scheduled tasks](/maps/documentation/mobility/operations/cloud-logging/reference/trips/rest).\n\nWhat's next\n\nTo get started with Cloud Logging, see [Set up\nCloud Logging](/maps/documentation/mobility/operations/cloud-logging/setup)."]]