Added printLogEntry function.