Add Logger

The logger works, although the revert part of it doesn't work yet, for
some reason.