write the input of the script to the error log
centarlized logging