2015年2月24日 星期二

LOG4j Simple start and slf4j start


Log4j 

1. Log4j setting explaination Good Explaination, Overview2

2. Example code Simple Example


For Setting in tomcat discussion
Stackup
apache office
Discussion2
Non-web

Slf4j Start

1. Overview ,  overview 2
2. It need the dependence of
  • slf4j-api-1.7.2.jar
  • slf4j-simple
  • logback-classic
  • logback-core
3.If you using log4j in the after you should setting in run command
-Dlog4j.configuration="/home/Andy/workspace/ShiroSource/WebContent/WEB-INF/log4j.properties"





Complete the slf4j and log4j in apache shiro

Summary File



From here

a. Library using 



b.  log4j.properties file  and put in the WEB-INF/






c. Setting the web.xml


d. Create web context listen at web start to load property files






沒有留言:

張貼留言