lambda function python logger