slight revision to modify-logger