making log outputting functions