|
6 rokov pred | |
---|---|---|
.. | ||
CatAppender.java | 6 rokov pred | |
README.md | 6 rokov pred |
业务程序的所有异常都通过记录到CAT中,方便看到业务程序的问题,建议在Root节点中添加此Appendar
在Log4j的xml中,加入Cat的Appender
<appender name="catAppender" class="com.dianping.cat.log4j.CatAppender"></appender>
<root>
<level value="error" />
<appender-ref ref="catAppender" />
</root>
<logger name="com.dianping.api.location" additivity="false">
<level value="INFO"/>
<appender-ref ref="locationAppender"/>
<appender-ref ref="catAppender"/>
</logger>