1. C:\jboss\server\default\deploy\jbossweb-tomcat.sar\META-INF目录下的jboss-service.xml,
a) <Engine name="MainEngine" defaultHost="localhost">
b) <Logger className = "org.jboss.web.catalina.Log4jLogger"
c) verbosityLevel = "debug" category = "org.jboss.web.localhost.Engine"/>
d) <Host name="localhost">
e)
f) <!-- Access logger -->
g) <!--Valve className = "org.apache.catalina.valves.AccessLogValve"
h) prefix = "localhost_access" suffix = ".log"
i) pattern = "common" directory = "${jboss.server.home.dir}/log" /-->
j)
k) <!-- Default context parameters -->
l) <DefaultContext cookies = "true" crossContext = "true" override = "true" />
m)
n) </Host>
o) </Engine>
p) 注释掉红色部分,就会禁止web日志(localhost)
2. C:\jboss\server\default\conf下的log4j.xml文件
a) <!-- A time/date based rolling appender -->
b) [color=red] <!--appender name="FILE" class="org.jboss.logging.appender.DailyRollingFileAppender">
c) <param name="File" value="${jboss.server.home.dir}/log/server.log"/>
d) <param name="Append" value="false"/-->[/color]
e)
f) <!-- Rollover at midnight each day -->
g) <!--param name="DatePattern" value="'.'yyyy-MM-dd"/-->
h)
i) <!-- Rollover at the top of each hour
j) <param name="DatePattern" value="'.'yyyy-MM-dd-HH"/>
k) -->
l)
m) <!--layout class="org.apache.log4j.PatternLayout"-->
n) <!-- The default pattern: Date Priority [Category] Message\n -->
o) <!--param name="ConversionPattern" value="%d %-5p [%c] %m%n"/-->
p)
q) <!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
r) <param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x) %m%n"/>
s) -->
t) <!--/layout>
u) </appender-->
v) 注释掉这部分
a) <Engine name="MainEngine" defaultHost="localhost">
b) <Logger className = "org.jboss.web.catalina.Log4jLogger"
c) verbosityLevel = "debug" category = "org.jboss.web.localhost.Engine"/>
d) <Host name="localhost">
e)
f) <!-- Access logger -->
g) <!--Valve className = "org.apache.catalina.valves.AccessLogValve"
h) prefix = "localhost_access" suffix = ".log"
i) pattern = "common" directory = "${jboss.server.home.dir}/log" /-->
j)
k) <!-- Default context parameters -->
l) <DefaultContext cookies = "true" crossContext = "true" override = "true" />
m)
n) </Host>
o) </Engine>
p) 注释掉红色部分,就会禁止web日志(localhost)
2. C:\jboss\server\default\conf下的log4j.xml文件
a) <!-- A time/date based rolling appender -->
b) [color=red] <!--appender name="FILE" class="org.jboss.logging.appender.DailyRollingFileAppender">
c) <param name="File" value="${jboss.server.home.dir}/log/server.log"/>
d) <param name="Append" value="false"/-->[/color]
e)
f) <!-- Rollover at midnight each day -->
g) <!--param name="DatePattern" value="'.'yyyy-MM-dd"/-->
h)
i) <!-- Rollover at the top of each hour
j) <param name="DatePattern" value="'.'yyyy-MM-dd-HH"/>
k) -->
l)
m) <!--layout class="org.apache.log4j.PatternLayout"-->
n) <!-- The default pattern: Date Priority [Category] Message\n -->
o) <!--param name="ConversionPattern" value="%d %-5p [%c] %m%n"/-->
p)
q) <!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
r) <param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x) %m%n"/>
s) -->
t) <!--/layout>
u) </appender-->
v) 注释掉这部分