[minor] use `posix` extension instead of darwin & linux in logging file