title: How to ouput the log of Apache Mina SSHD?
body: <p>I am building a demo base on Apache Mina SSHD, and i import log4j by maven and config log4j,the configuration of log4j like this:</p>
  
  <pre><code># priority  :debug&lt;info&lt;warn&lt;error
  </code></pre>
  
  <h1>you cannot specify every priority with different file for log4j</h1>
  
  <p>log4j.rootLogger=debug,stdout,info,debug,warn,error </p>
  
  <h1>console</h1>
  
  <p>log4j.appender.stdout=org.apache.log4j.ConsoleAppender </p>
  
  <p>log4j.appender.stdout.layout=org.apache.log4j.PatternLayout </p>
  
  <p>log4j.appender.stdout.layout.ConversionPattern= [%d{yyyy-MM-dd HH:mm:ss a}]:%p %l%m%n</p>
  
  <h1>info log</h1>
  
  <p>log4j.logger.info=info</p>
  
  <p>log4j.appender.info=org.apache.log4j.DailyRollingFileAppender </p>
  
  <p>log4j.appender.info.DatePattern='_'yyyy-MM-dd'.log'</p>
  
  <p>log4j.appender.info.File=./src/com/hp/log/info.log</p>
  
  <p>log4j.appender.info.Append=true</p>
  
  <p>log4j.appender.info.Threshold=INFO</p>
  
  <p>log4j.appender.info.layout=org.apache.log4j.PatternLayout </p>
  
  <p>log4j.appender.info.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss a} [Thread: %t][ Class:%c >> Method: %l ]%n%p:%m%n</p>
  
  <h1>debug log</h1>
  
  <p>log4j.logger.debug=debug</p>
  
  <p>log4j.appender.debug=org.apache.log4j.DailyRollingFileAppender </p>
  
  <p>log4j.appender.debug.DatePattern='_'yyyy-MM-dd'.log'</p>
  
  <p>log4j.appender.debug.File=./src/com/hp/log/debug.log</p>
  
  <p>log4j.appender.debug.Append=true</p>
  
  <p>log4j.appender.debug.Threshold=DEBUG</p>
  
  <p>log4j.appender.debug.layout=org.apache.log4j.PatternLayout </p>
  
  <p>log4j.appender.debug.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss a} [Thread: %t][ Class:%c >> Method: %l ]%n%p:%m%n</p>
  
  <h1>warn log</h1>
  
  <p>log4j.logger.warn=warn</p>
  
  <p>log4j.appender.warn=org.apache.log4j.DailyRollingFileAppender </p>
  
  <p>log4j.appender.warn.DatePattern='_'yyyy-MM-dd'.log'</p>
  
  <p>log4j.appender.warn.File=./src/com/hp/log/warn.log</p>
  
  <p>log4j.appender.warn.Append=true</p>
  
  <p>log4j.appender.warn.Threshold=WARN</p>
  
  <p>log4j.appender.warn.layout=org.apache.log4j.PatternLayout </p>
  
  <p>log4j.appender.warn.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss a} [Thread: %t][ Class:%c >> Method: %l ]%n%p:%m%n</p>
  
  <h1>error</h1>
  
  <p>log4j.logger.error=error</p>
  
  <p>log4j.appender.error = org.apache.log4j.DailyRollingFileAppender</p>
  
  <p>log4j.appender.error.DatePattern='_'yyyy-MM-dd'.log'</p>
  
  <p>log4j.appender.error.File = ./src/com/hp/log/error.log </p>
  
  <p>log4j.appender.error.Append = true</p>
  
  <p>log4j.appender.error.Threshold = ERROR </p>
  
  <p>log4j.appender.error.layout = org.apache.log4j.PatternLayout</p>
  
  <p>log4j.appender.error.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss a} [T</p>
  
  <p>I have expected that the log of apache mina sshd will be displayed on the console,but nothing came out when the project run, how can i see the log of apache mina sshd?</p>