与其他应用程序集成 > Windchill Workgroup Manager 文档 > AutoCAD > 管理和配置 > 性能注意事项 > 在 Windchill Workgroup Manager 客户端中启用调试日志记录
  
在 Windchill Workgroup Manager 客户端中启用调试日志记录
在排除 Windchill 交互问题时,在 Windchill Workgroup Manager 客户端上启用附加的调试日志记录会更利于问题的解决。可通过导航至“开始” > “控制面板” > “系统” > “高级” > “环境变量” > “用户变量” > “新建”在 Windows 中设置客户端环境来启用附加的调试日志记录 (例如,在 uwgm.log 中创建一个 applog.log、bsc.log 等)
* 
启用调试日志记录可能会降低系统性能。
uwgm.log 中启用调试日志记录
适用于 Wildfire、Wildfire 2.0、Wildfire 3.0
设置下列环境:
UWGM_LOG_ACTIONS=t
UWGM_LOG_TASK_QUEUES=true
UWGM_LOG_DOWNLOAD=true
UWGM_PERSIST_LOG_DEBUG=yes
* 
UWGM_LOG_ACTIONS 环境在某些情况下会导致退出 Creo Parametric。不要在排除过早退出故障时设置此环境。
启用 uwgm.log 和/或 applog.log 创建
适用于 Wildfire 4.0+、Arbortext Editor、Windchill Workgroup Manager
针对常规调试使用下列环境来创建一个 logging.cfg.debug 文本文件:
verbose_level DEBUG
enable CIPSOAP DEBUG
enable UWGMCLNT_PDM_ACTIONS DEBUG
enable UWGMCLNT_CAD_ACTIONS DEBUG
enable PROWT_PDM_ACTIONS DEBUG
enable UWGM_COMM DEBUG
enable Communication DEBUG
enable ContentPlugin DEBUG
enable CurrentLogger DISABLED
enable DBObjectIBA DEBUG
enable Download DEBUG
enable HTTPDownload DEBUG
enable LocalCache DEBUG
enable Merge DISABLED
enable PartIBA DEBUG
enable Persistance DEBUG
enable Profile DEBUG
enable RefTable DISABLED
enable ServerCache DEBUG
enable ServerDownload DEBUG
enable IndexLogging DEBUG
enable ServerProfile DEBUG
enable ThreadQueue DEBUG
enable ToDo DISABLED
enable Upload DEBUG
enable WorkspaceCache DEBUG
enable Ipc DISABLED
enable WfImport DEBUG
enable DetailActionInfo DEBUG
enable Wildfire DEBUG
enable UWGMLIB_CONTENT_MANAGER DEBUG
enable UWGMLIB_PREFERENCES DEBUG
enable UWGMCLNT_PREFERENCES DEBUG
enable UWGM_CADADAPTER_TRL DEBUG
enable WWGM_ADAPTER_LOGGING DEBUG
enable WWGM_PREFERENCES DEBUG
enable PROWT_JSCB_LOG_AREA DEBUG
enable UWGM_ADAPTER DEBUG
enable WindchillRTA DEBUG
enable UWGMLIB_VFS DEBUG
enable UWGMCLNT_VFS DEBUG
enable UWGMLOCK DEBUG
enable WWGM_CLIENT_VERSION DEBUG
enable PROE_PROWT DEBUG
enable HTTP_INIT_AREA DEBUG
enable PROWT_PROP_AREA DEBUG
enable ConfigAssembly DEBUG
use_local_time yes
设置下列环境:
PTC_LOG_ACTIVATE=t
PTC_LOG_CONFIG=c:\logging.cfg.debug
logging.cfg.debug 文件移至 PTC_LOG_CONFIG 环境位置。
注意:如果在解决与性能相关的问题,则请在 logging.cfg.debug 使用下列环境:
verbose_level INFO
enable CIPSOAP INFO
enable UWGMCLNT_PDM_ACTIONS ERROR
enable UWGMCLNT_CAD_ACTIONS ERROR
enable PROWT_PDM_ACTIONS ERROR
enable UWGM_COMM ERROR
enable Communication ERROR
enable ContentPlugin ERROR
enable CurrentLogger DISABLED
enable DBObjectIBA ERROR
enable Download ERROR
enable HTTPDownload ERROR
enable LocalCache ERROR
enable Merge ERROR
enable PartIBA ERROR
enable Persistance ERROR
enable Profile ERROR
enable RefTable ERROR
enable ServerCache ERROR
enable ServerDownload ERROR
enable ServerProfile ERROR
enable ThreadQueue ERROR
enable ToDo DISABLED
enable Upload ERROR
enable WorkspaceCache ERROR
enable UWGMLIB_CONTENT_MANAGER ERROR
enable UWGMLIB_PREFERENCES DISABLED
enable UWGMCLNT_PREFERENCES ERROR
enable UWGM_CADADAPTER_TRL ERROR
enable PROWT_JSCB_LOG_AREA ERROR
enable UWGM_ADAPTER INFO
enable WindchillRTA ERROR
enable ConfigAssembly ERROR
use_local_time yes
* 
首选 logging.cfg.debug 中的完整调试日志记录。
* 
若使用的是 Wildfire 4.0 M060,则将在启动目录中创建 applog.log<start-in>\Log_<authoring_app>_<version>_<pid>_<date>_<time>_<session>\uwgm.log。可通过将某一 "log_dir_path <desired_path>" 条目添加至 logging.cfg.debug 来对这些文件和目录的位置进行控制;例如:log_dir_path c:\temp
启用 bsc.log 创建
适用于 Wildfire - Wildfire 4.0 和 Windchill Workgroup Manager 9.1 及其早期版本
在客户端环境中进行下列设置:
BSC_LOG_FILE_NAME=bsc.log
使用 BSC 信息来启用 applog.log.# 创建。
适用于带有配置选项 windows_browser_type=ie_in_process 或 ie_in_sep_process 或带有 Windchill Workgroup Manager 10.0 及其更新版本的 Wildfire 5.0
在客户端环境中进行下列设置:
BSC_LOG_ACTIVATE=t
启用 request/response*.xml 创建
在使用所有的 Wildfire 版本、Arbortext Editor、Windchill Workgroup Manager
在客户端环境中进行下列设置:
UWGM_PRINT_XML_FILES=yes
* 
若使用的是 Wildfire 4.0 M060,则在同时也启用了 PTC_LOG_ACTIVATE=t 时会将这些文件放置到 <start-in>\Log_<authoring_app>_<version>_<pid>_<date>_<time>_<session> 中。
启用适配器日志文件创建
在使用 Windchill Workgroup Manager 时
在客户端环境中进行下列设置:
VC_LOG_DIR=<path>
std.outstd.err 重新定向至 uwgm_client.out
在使用 Windchill Workgroup Manager 时
在客户端环境中进行下列设置:
PTC_WGM_STDFILES=t
启用 Java 脚本桥日志记录
在使用所有 Wildfire 版本和 Windchill Workgroup Manager 时
在客户端环境中进行下列设置:
PTC_JS_COMMAND_LOG=t
文件位置注解
在 Wildfire - Wildfire 3.0 版本中,uwgm.log 将在应用程序启动目录中生成。
在 Wildfire 4.0 F000-M050 版本中,applog.log 将在应用程序启动目录中生成。
在 Wildfire 4.0 M070 及其后续版本、Windchill Workgroup Manager 9.1 M010 及其后续版本中,applog 将在应用程序启动目录中生成,而 uwgm.log 和其他客户端日志是在“启动”目录中的唯一一个目录下自动创建的。此更改是为了支持在多个 CAD 应用程序会话中共享缓存