Tag: log4j properties
How To Create Log4j.properties File
by  Java4s | 6 Comments
  [ Ask Question ]
In previous program, i have used FileAppender. But if i would like to change my appender to JDBCAppender, i have to open my java file and do the modifications and need to recompile. We can avoid this by writing…
Example On Log4j.properties File With FileAppender & SimpleLayout
by  Java4s | 24 Comments
  [ Ask Question ]
Let us see how to use log4j.properties file Files Required Client.java log4j.properties my.txt Directory Structure Client.java import org.apache.log4j.Logger; public class Client { static Logger l =…