daydreamer
daydreamer

Reputation: 92149

What are the best ways to insert blank lines in logs using python logging?

I currently do

# three extra blank lines per srh for debug log
logging.info('')
logging.info('')
logging.info('')

But this makes the code bloated, is there any better way?

Upvotes: 4

Views: 2928

Answers (1)

spky
spky

Reputation: 2212

It's not really a blank line, but sometimes I use this:

logging.info('-' * 80)

Upvotes: 4

Related Questions