Added interface for logger. Closes #148.