sg_io->set_location_info(MSG_FUNCTION)
object.io.set_location_info(1)

or

sg_io->set_location_info(MSG_LINE_AND_FILE)
object.io.set_location_info(2)