Logger Function In Python Example