Does Powershell have an automatic log, or do I have to write log functions to my scrips? -


i have been writing syntax statistics software such spss, stata , sas, , new coding in powershell. used beeing able scan log file finding out script does, example values assigned variable or iteration of loop running.

but when run powershell script (using powershell ise), dont message @ unless there fatal error in script. no errors, script doesn't execute rigth action, know there error somewhere. when write code sentence sentence console, outputs telling me goes on, once run enitre script, there no output keep track on. there way view log script, or have implicitly write log functions script? googling, seems case, hate spend hours writing log-code find have openede x folder , find looking for

in addition @vesper's reply, can use start-transcript cmdlet record each command , response logfile. ie

start-transcript -path c:\logs\logfile.txt

and set-psdebug great too


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -