Add get_mod_log function and associated test.