logging formatters python