using output stream log