working with printoutstream log