logging python formatter example