added impl for log(), tests for logging one or multiply messages