Log bug fixes

The log should be entirely working now.