printing logs