logging enhancement