add prefix and suffix to log stream