企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# LogError `LogError(Message, [From], [ErrNumber])` `Message`-`{String}` `From`-`{String}` *可选* `ErrNumber`-`{Long}` *可选* 记录错误(即使使用`EnableLogging`禁用日志记录时),其中包含消息来源的可选位置和错误号。 在向VBA-Web编写扩展时很有用(比如`IWebAuthenticator`)。 ~~~vb WebHelpers.LogError "Something went wrong" '// -> ERROR - VBA-Web: Something went wrong WebHelpers.LogError "Something went wrong", "Module.Function" '// -> ERROR - Module.Function: Something went wrong WebHelpers.LogError "Something went wrong", "Module.Function", 100 '// -> ERROR - Module.Function: 100, Something went wrong ~~~