###define an appender named console
log4j.appender.console=org.apache.log4j.ConsoleAppender
###The Target value is System.out or System.err
log4j.appender.console.Target=System.out
#set the layout type of the appender
log4j.appender.console.layout=org.apache.log4j.PatternLayout
#set the layout format pattern
log4j.appender.console.layout.ConversionPattern=[%-5p] %m%n

###define a logger
log4j.rootLogger=INFO,console