added print method to Log: prints the whole log on an output stream, one line corresponding to one event