Add getLog functionality.