Added a timestamp to `.log()`

The tests are not optimal since there might be a race condition where .log() generates another timestamp than the one that's generated for assertion.

Any thoughts on this?