This will automatically remove ending '\n' from printf-like log functions