Modify log button to insert log entry into content provider.