cleaning stdout logs