java 我在哪里可以找到 Weblogic 服务器中的日志配置文件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3360380/
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-10-30 01:29:06  来源:igfitidea点击:

Where could I find the log configuration file in Weblogic server?

javalog4jweblogic

提问by Joseph

We could modify this file to change the log generation way. For example, We could change the log rolling way, by hour or by day; and show different log types: info,error and etc.

我们可以修改这个文件来改变日志的生成方式。例如,我们可以改变日志滚动方式,按小时或按天;并显示不同的日志类型:信息、错误等。

Thanks.

谢谢。

回答by Joseph

You could find a file named as config.xml.

您可以找到一个名为 config.xml 的文件。

It has an item to config log.

它有一个项目来配置日志。

Like:

喜欢:

  <file-name>logs/examplesServer.log</file-name>
  <rotation-type>byTime</rotation-type>
  <number-of-files-limited>true</number-of-files-limited>
  <file-time-span>24</file-time-span>
  <rotation-time>00:00</rotation-time>
  <rotate-log-on-startup>true</rotate-log-on-startup>
  <logger-severity>Info</logger-severity>
  <log-file-severity>Debug</log-file-severity>
  <stdout-severity>Notice</stdout-severity>
  <domain-log-broadcast-severity>Notice</domain-log-broadcast-severity>
  <memory-buffer-severity>Trace</memory-buffer-severity>
  <log4j-logging-enabled>false</log4j-logging-enabled>
  <redirect-stdout-to-server-log-enabled>false</redirect-stdout-to-server-log-enabled>
  <domain-log-broadcaster-buffer-size>1</domain-log-broadcaster-buffer-size>
</log>

Thanks, Joseph

谢谢,约瑟夫