WebLogic:将标准错误导入文件 [英] WebLogic: Getting Standard Error Into A File

查看:113
本文介绍了WebLogic:将标准错误导入文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用WebLogic 9.2.我在Admin Server网页中找到一个选项,可以将标准发送到服务器日志文件.对于标准错误,我也希望这样做,但是在Admin Server网页中找不到该选项.我还没有发现Oracle文档非常清楚.我是否需要在某个地方的配置文件中手动设置此选项,如果需要,在哪里以及如何进行设置?预先感谢

I'm using WebLogic 9.2. I found an option in the Admin Server web page to send standard out to the server log files. I would like the same for standard error, but I can't find an option for it in the Admin Server web page. I haven't found Oracles documentation very clear. Do I need to set this option by hand in a config file somewhere and if so where and how? Thanks in advance

推荐答案

如果您正在使用

If you are using 'RedirectStdoutToServerLogEnabled' feature as described in http://download.oracle.com/docs/cd/E13222_01/wls/docs90/ConsoleHelp/taskhelp/logging/RedirectJVMOutput.html it will redirect both stdout and stderr to the server logs

WebLogic还支持-Dweblogic.stdout =/tmp/mystdout.log& -Dweblogic.stderr =/tmp/mystderr.log属性,您可以在启动服务器时传递这些属性.但是请注意,此类日志没有日志轮换.

WebLogic also supports -Dweblogic.stdout=/tmp/mystdout.log & -Dweblogic.stderr=/tmp/mystderr.log properties which you can pass in when starting the server. However note that there is no log rotation for such logs.

这篇关于WebLogic:将标准错误导入文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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