title: How to intergrate loguru into pynput keylogger?
body: <p>I am trying to add a logging feature to my keylogger using loguru but i cant seem to understand how to use loguru to update the keylogs onto the l0g.txt file that i want to create. any help would be much appriciated.</p>
  <pre><code>from pynput.keyboard import Listener
  from loguru import logger
  
  FORMAT = '%(asctime)s %(message)s'
  logger.basicConfig(
       filename=(&quot;C:\temp&quot; + &quot;l0g.txt&quot;), level=logger.INFO)
  
  
  def _start(self):
  with Listener(on_press=self.on_press, on_release=self.on_release) as 
  self.listener:
        self.listener.join()
  </code></pre>