oracle weblogic server 10.3.5上部署的应用日志在哪里找?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25657341/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 02:29:33  来源:igfitidea点击:

Where to find the application log that deployed on weblogic server 10.3.5?

javaoracleloggingdeploymentweblogic

提问by Salman

I am able to find the whole sever log under the path

我能够在路径下找到整个服务器日志

....\Oracle\WLS\user_projects\domains\[domain name goes here]\servers\[Server name goes here]\logs

....\Oracle\WLS\user_projects\domains\[domain name goes here]\servers\[Server name goes here]\logs

But the problem that I it does not contains all the stack that I usually see in Jdeveloperconsole at the development time.

但是我的问题是它没有包含我Jdeveloper在开发时通常在控制台中看到的所有堆栈。

So, Where to find the stack or logs for the application not the whole sever exactly like Jdeveloperconsole where every thing is shown even the print statements (System.out.print()) ?

那么,在哪里可以找到应用程序的堆栈或日志,而不是像Jdeveloper控制台那样显示所有内容甚至打印语句 ( System.out.print())的整个服务器?

回答by Display Name is missing

There are two potential locations (the one you mentioned is the default):

有两个潜在位置(您提到的位置是默认位置):

- <domain home>/servers/<server_name>/logs
- Admin Console->Servers->Server Name->Logging tab->Log file name

If you're not seeing the debug/stack traces you expect, you should use the Advancedsection on the Logging tab and turn up the Severity Levelfor the log file and standard out.

如果您没有看到您期望的调试/堆栈跟踪,您应该使用AdvancedLogging 选项卡上的部分并打开Severity Level日志文件和标准输出。

You can also set Redirect stdout logging enabledand Redirect stderr logging enabledto ensure everything you expect gets to the log file.

您还可以设置Redirect stdout logging enabledRedirect stderr logging enabled确保您期望的所有内容都进入日志文件。

That said, the application you are running could be using it's own logging location and ignore everything above.

也就是说,您正在运行的应用程序可能正在使用它自己的日志记录位置并忽略上面的所有内容。

回答by Bistro

I agree with @castling. I found these 2 answers that may help.

我同意@castling。我发现这 2 个答案可能会有所帮助。

Weblogic Logging Start Script

Weblogic 日志记录启动脚本

Weblogic Enabling Redirect through Admin Console

Weblogic 通过管理控制台启用重定向

回答by asura

Default weblogic domain will be under ".jdeveloper/system" folder in your home.. Under System folder, navigate to "DefaultDomain/servers/DefaultServer/logs"

默认的 weblogic 域将在您家中的“.jdeveloper/system”文件夹下。在 System 文件夹下,导航到“DefaultDomain/servers/DefaultServer/logs”

Eg: /home/myuser/.jdeveloper/system12.2.1.0.42.151011.0031/DefaultDomain/servers/DefaultServer/logs

例如:/home/myuser/.jdeveloper/system12.2.1.0.42.151011.0031/DefaultDomain/servers/DefaultServer/logs