Fix raw logging

Closes #1.