middle-initialize callback with logging level