Made it possible to extract log entries as data, not just formatted strings
Added unit tests for logging