💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# 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 ~~~