azure-sdk-for-cpp/eng/common/scripts/logging.ps1
Azure SDK Bot 02622fff74
Update Prepare-Release script (#1757)
- Remove BuildType parameter as we can default it from package properties
- Stop passing BuildType and GroupId and instead defaul them from package properties
- Enable StrictMode to help identify potential errors
- Start passing sdktype and isnewsdk properties to devops script
- Sync latest changes with devops work item to fix a couple bugs

Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
2021-02-26 18:46:42 -08:00

38 lines
534 B
PowerShell

$isDevOpsRun = ($null -ne $env:SYSTEM_TEAMPROJECTID)
function LogWarning
{
if ($isDevOpsRun)
{
Write-Host "##vso[task.LogIssue type=warning;]$args"
}
else
{
Write-Warning "$args"
}
}
function LogError
{
if ($isDevOpsRun)
{
Write-Host "##vso[task.LogIssue type=error;]$args"
}
else
{
Write-Error "$args"
}
}
function LogDebug
{
if ($isDevOpsRun)
{
Write-Host "[debug]$args"
}
else
{
Write-Debug "$args"
}
}