custom logger for same line logging