add the input text and log text of the source code