using custom logger instead of flask logger