Log asserts

Log assert messages to the console.