如何使WebLogic记录所有“控制台"?消息成文件? [英] How to make WebLogic log all "console" message into a file?

查看:78
本文介绍了如何使WebLogic记录所有“控制台"?消息成文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Eclipse中,您可以在控制台中看到所有消息(System.out.println的输出),但是在WebLogic中,如何获取包含所有这些消息的文件?

In Eclipse you can see all messages in console (output of System.out.println), but in WebLogic, how can I get a file which contains all these message ?

推荐答案

您可以通过修改startWeblogic.cmd或从管理控制台中完成此操作

You can do this by either modifying the startWeblogic.cmd or from the Admin console

详细信息中查看这两个选项

启动管理服务器时,在weblogic.Server命令中包括以下Java选项:

When you start the Administration Server, include the following Java option in the weblogic.Server command:

-Dweblogic.log.RedirectStdoutToServerLogEnabled=true

或者从管理控制台

这篇关于如何使WebLogic记录所有“控制台"?消息成文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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