adding logging to textarea