ScriptCS Error Handling / Logging

Hi,
I’m running octopus deploy 3.0 and wanted some information on how to log errors and handle exceptions in ScriptCS steps. It seems like the errors returned are pretty ambiguous and I would like somewhere to log the stack trace, etc. Does anyone have more information on this subject?

Thanks Brad

Hello,
I think I found my answer.

Console.WriteLine(“Stuff”);

Hi Brad,

Thanks for getting in touch. I’m glad you figured it out on your own! For completeness I’ve added some more information about logging from different script languages: http://docs.octopusdeploy.com/display/OD/Custom+scripts

Also, check out the Script Console, which is an easy way to test how scripts will run on any given deployment target: http://docs.octopusdeploy.com/display/OD/Script+Console

Hope that helps!
Mike