How do I increase the logging level for the deployment log?
Hi,
My deployment script isn't deploying to my web server but the deployment actually succeeds. I want to find out what is going wrong - but the deployment log only seems to be logging the most basic information - how do I increase the logging level of the deployment log to include the Write-Verbose messages?
Thanks
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac

Support Staff 1 Posted by Feodor Fitsner on 28 Dec, 2013 05:06 PM
Hi Rupert,
To enable verbose logging I would do an additional "wrapping"
deploy-verbose.ps1script that looks like below:To make -verbose switch work
deploy.ps1script must have[CmdletBinding()], so minimal script could look like this:From AppVeyor you call
deploy-verbose.ps1then. If you use any of AppVeyor system parameters like-projectNamedo not forget to declare them indeploy-verbose.ps1and then pass todeploy.ps1.Let me know if it works for you.
2 Posted by Rupert on 08 Jan, 2014 10:38 AM
Do I need to do more than add
[CmdletBinding()]todeploy.ps1to print messages withWrite-Verbose?Do I need some sort of if statement? Sorry I am a bit lost.
Thanks
Support Staff 3 Posted by Feodor Fitsner on 08 Jan, 2014 05:35 PM
Well, yes, adding
[CmdletBinding()]andparam()to deploy.ps1 will allow you to call it from deploy-verbose.ps1 with -verbose flag.Do you have any issues with this method?
As for me, I usually prefer old-school way of adding additional
Write-Hoststatements across the script :)Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:37 AM.