文档

​
​

Development

User Acquisition

Monetization

工业

Unity Cloud

Get Started

Asset Manager SDKs and services

Open Unity Dashboard

Unity Cloud

此页面不支持所选语言。
​
​
Unity Dashboard
  • Accounts
  • Organizations
  • Projects
  • Products
  • Billing
Developer Data
  • Introduction to the Developer Data Framework
  • Get started
  • View Diagnostics for your project
  • Privacy and consent
Unity Asset Manager
  • What's new
  • Asset Manager web
  • Asset Store
  • Manage Assets in the Editor
  • Unity Version Control
  • Developer documentation
    • Asset Manager SDKs and services
    • Integrations
      • Get started with your Asset Manager integration
      • Unity Cloud Python SDK
        • Prerequisites
        • Get started
        • Security information
        • Manage Identity
        • Manage assets
        • Manage asset versions
        • Manage datasets and files
        • Manage metadata
        • Manage collections
        • Manage transformations
        • Manage asset status
        • Manage VCS integrations
        • Open Dashboard
        • Configure Self-Hosted Deployment
        • Samples
        • Configure logs
        • Troubleshooting
      • Unity Pipeline Automation
      • Asset Manager for Unity Asset Transformer Studio
      • Asset Manager for Blender
Unity Pipeline Automation
  • About
  • Get started
  • Pipelines
  • Automations
  • Monitor jobs
  1. Unity Cloud Documentation
  2. Asset Manager
  3. Unity Cloud Python SDK

Configure logs

How to configure logs to track your activities with Python SDK.
阅读时间2 分钟
最后更新于 1 年前

The log files are generated in the following format:
UnityCloud_YYYY-MM-DD_HH-MM-SS.log
. A new log file is generated for each session, which starts when you call
unity_cloud.initialize()
.

Find the logs

By default Python SDK logs are saved in a
UnityCloud
folder. To find Python SDK logs, go to AppData >
UnityCloud
.

Set a custom logging folder path

You can change the location where Python SDK logs are saved. To set a custom logging folder path, follow these steps:
  1. Locate the folder to use and store that path as a string.
  2. Use the
    unity_cloud.set_logger_path
    method to edit the location of the folder as a string.
unity_cloud.set_logger_path( path = "path/to/folder" ) unity_cloud.initialize()
注意
If you want to use a custom logging folder, call the
unity_cloud.set_logger_path
method before calling
unity_cloud.initialize()
.
For each session started by calling
unity_cloud.initialize()
a new log file is generated in the most recently set folder path. If the folder does not exist, the folder will be created for the logs. The method accepts both absolute and relative paths.

Add a log entry

To add a log entry to the log file, follow these steps:
  1. Use the
    unity_cloud.logger.log
    method and set the log message as a string.
  2. Edit the log message level which defaults to an
    info
    log level.
  3. (Optional) Include a custom source for the message. The default value is
    Unity Cloud Python SDK
    .
unity_cloud.initialize() unity_cloud.logger.log( message = "Test log message", level = unity_cloud.logger.log_level.info, source = "custom_source" )
注意
The log level enum can be set using the preset values in
unity_cloud.logger.log_level
which include:
info
,
warning 
and
error
.

Copyright © 2026 Unity Technologies
法律信息隐私政策CookiesDocumentation Terms of Use请勿出售或分享我的个人信息您的隐私选择(Cookie 设置)

“Unity”、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属公司在美国和其他地方的商标或注册商标(此处查看更多信息)。其他名称或品牌是其各自所有者的商标。

为方便起见,一些页面是机器翻译的,可能包含不准确的内容。如有信息不一致的情况,以英文版本为准。

  • 在本页上
    • Find the logs

    • Set a custom logging folder path

    • Add a log entry


报告此页面的问题