Adds printEntry function
List function prints all log entries via printEntry