python logging formatter examples