Added line wrapping to logx