title: How do I log text and a variable in the same line in Python?
body: <p>I am relativly new to coding with Python.</p>
  
  <p>I recently set up a gps logging device with a raspberry pi and I want to make my log file look cleaner.</p>
  
  <p>My current code for logging is:</p>
  
  <pre><code>logging.info('Altitude:')
  logging.info(gpsd.fix.altitude)
  </code></pre>
  
  <p>It logs:</p>
  
  <pre><code>INFO:root:Altitude:
  INFO:root:80
  </code></pre>
  
  <p>What I want to see in the log is:</p>
  
  <pre><code>Altitude: 80
  </code></pre>
  
  <p>I tried to do this with my limited knowledge with python, but it only resulted in failure.</p>
  
  <p>Thanks!
  Also, any other tips for cleaning up the log file?</p>