set middleware as property on logger