title: Logs not getting printed while running topology on Apache Storm Cluster
body: <p>Log file is getting created and logs are getting written into it.But,when I run it on the cluster it writes only the log messages which are specified in the main method.It does not write the logs messages specified in the bolts and spouts.</p>
  
  <pre><code>log4j.rootLogger=TRACE,error,R
  
  # Direct log messages to stdout
  log4j.appender.stdout=org.apache.log4j.ConsoleAppender
  log4j.appender.stdout.Target=System.out
  log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
  log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
  
  log4j.appender.R=org.apache.log4j.RollingFileAppender
  log4j.appender.R.MaxFileSize=20MB
  log4j.appender.R.File= /home/ubuntu/Documents/logsInfer/ConsumerStorm.log
  log4j.appender.R.layout=org.apache.log4j.PatternLayout
  log4j.appender.R.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss,SSS} %r [%t] %-5p %c - %m%n
  log4j.appender.R.MaxBackupIndex=10
  
  log4j.appender.Con=org.apache.log4j.ConsoleAppender
  log4j.appender.Con.layout=org.apache.log4j.PatternLayout
  log4j.appender.Con.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss,SSS} %r [%t] %-5p %c - %m%n
  </code></pre>