installanywhere将调试日志重定向到文件 [英] installanywhere redirect debug logs to file

查看:220
本文介绍了installanywhere将调试日志重定向到文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要调试Installanywhere创建的应用程序,我使用

For debugging the Installanywhere created applications, I use

export LAX_DEBUG = true

然后我运行我的安装程序作为

then I run my installer as

./ setup.sh -DDEBUG =控制台

将所有调试日志重定向到控制台。
我可以将此日志重定向到任何文件,以便我可以提到:

which redirects all the debug logs to console. Can I redirect this logs to any file so that I can mention as:

./ setup.sh -DDEBUG = / tmp / a。 txt

提前感谢

推荐答案

Installanywhere将所有日志放在用户选择的安装目录中的-log.log文件中。
要在该文件中添加其他条目,您需要使用CustomError类与appendMessage和appendError apis。

Installanywhere put all logs to -log.log file in installation directory chosen by user. To have additional entries in that file, you need to use CustomError class with appendMessage and appendError apis.

这篇关于installanywhere将调试日志重定向到文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆