How to trace log Axis on client side with log4j
□ Tech (Software)How to trace log Axis on client side with log4j
log4j로 Axis client 로그 남기기
environment
axis (not axis2)
Axis client codes are generated by Eclipse plugin
how to
* append configurations to existing log4j.xml
1. Appender
<!-- Tracing Axis Client Log ( This could also trace Axis Server log -->
<appender name="WSCLOG" class="org.apache.log4j.DailyRollingFileAppender">
<param name="File" value="${vc.root}/log/wsc.log"/>
<param name="Append" value="true"/>
<param name="Threshold" value="DEBUG"/>
<!-- Rollover at midnight each day -->
<param name="DatePattern" value="yyyy-MM-dd'.log'"/>
<layout class="org.apache.log4j.PatternLayout">
<!-- The default pattern: Date Priority [Category] Message\n -->
<param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
</layout>
</appender>
2. Category
<!-- Tracing Axis Client Log ( This could also trace Axis Server log -->
<category name="org.apache.axis">
<priority value="DEBUG" />
<appender-ref ref="CONSOLE"/>
<appender-ref ref="WSCLOG"/>
</category>
<category name="org.apache.axis.encoding">
<priority value="DEBUG" />
<appender-ref ref="CONSOLE"/>
<appender-ref ref="WSCLOG"/>
</category>
<category name="org.apache.axis.utils">
<priority value="DEBUG" />
<appender-ref ref="CONSOLE"/>
<appender-ref ref="WSCLOG"/>
</category>
<category name="org.apache.axis.message">
<priority value="DEBUG" />
<appender-ref ref="CONSOLE"/>
<appender-ref ref="WSCLOG"/>
</category>
refernce
http://axis.apache.org/axis/java/developers-guide.html#Configuring_the_Logger
'□ Tech (Software)' 카테고리의 다른 글
목업 / 프로토타이핑 - 웹사이트 / 프로그램 비교 (0) | 2017.07.31 |
---|---|
How to rotate tomcat catalina.out (with logrotate) (0) | 2017.01.09 |
[issue solved] Loading Excel Data on ExtJs Grid using SheetJs (0) | 2016.12.30 |
[Spring] How to exclude html in Spring MVC (0) | 2016.12.18 |
Network Monitoring on Windows (0) | 2016.11.18 |