title: Why I am getting error "ERROR Could not find value for key log4j.appender.CONSOLE"?
body: <p>I am using a log4j version 1.2.15, at the time of executing a code I am able to get log file and .html but in console it generate a below error:</p>
  
  <pre><code>log4j:ERROR Could not find value for key log4j.appender.CONSOLE
  log4j:ERROR Could not instantiate appender named "CONSOLE".
  </code></pre>
  
  <p>I am using below property file:</p>
  
  <pre><code>log4j.rootLogger= INFO,CONSOLE,R,HTML,TTCC
  
  //Here we define the appender
  log4j.appender.console=org.apache.log4j.ConsoleAppender
  log4j.appender.R=org.apache.log4j.RollingFileAppender
  log4j.appender.TTCC=org.apache.log4j.RollingFileAppender
  log4j.appender.HTML=org.apache.log4j.FileAppender
  
  // Here we define log file location
  log4j.appender.R.File=./log/testlog.log
  log4j.appender.TTCC.File=./log/testlog.log
  log4j.appender.HTML.File=./log/aplication.html
  
  // Here we define the layout and pattern
  log4j.appender.console.layout=org.apache.log4j.PatternLayout
  log4j.appender.console.layout.ConversionPattern= [%t:%p] %c: %m%n
  
  log4j.appender.R.layout=org.apache.log4j.PatternLayout
  log4j.appender.R.layout.ConversionPattern= %d - %c -%p -%m%n
  
  log4j.appender.TTCC.layout=org.apache.log4j.TTCCLayout
  log4j.appender.TTCC.layout.DateFormat=ISO8601
  
  log4j.appender.HTML.layout=org.apache.log4j.HTMLLayout
  log4j.appender.HTML.layout.Title=Application log
  log4j.appender.HTML.layout.LocationInfo= true
  </code></pre>
  
  <p>Also, I don't understand in log file why it print same line twice with "<strong>main</strong>" and "<strong>demo</strong>", please check below:</p>
  
  <pre><code>015-08-10 21:25:08,921 - demo -INFO -New driver instantiated
  2015-08-10 21:25:08,921 [main] INFO demo - New driver instantiated
  2015-08-10 21:25:09,000 - demo -INFO -Implicit wait applied on the driver for 10 seconds
  2015-08-10 21:25:09,000 [main] INFO demo - Implicit wait applied on the driver for 10 seconds
  2015-08-10 21:25:42,156 - demo -INFO -Web application launched
  2015-08-10 21:25:42,156 [main] INFO demo - Web application launched
  </code></pre>
  
  <p>Can anyone please let me know what the exact problem is?
  Also, I am trying it first time by seeing the tutorial. So, please help me.</p>