Specify logging within script file
I have a couple of script files that I invoke in VBA to upload files to a server. Within those script files, or within the vba shell command that calls the script, how do I invoke logging of the operations called for in the script? Where are such logs saved? Could somebody provide an example?