Public/Write-CidneyLog.ps1
function Write-CidneyLog { param ( [parameter(ValueFromPipeline)] [string] $Message = $null ) $indentLevel = $CidneyPipelineCount if($indentLevel -lt 0) { $indentLevel = 0 } $Date = "[$(Get-Date -Format 'MM/dd/yy h:mm:ss.fff tt')]" $indent = ('...' * $indentLevel) Write-Verbose "$Date $indent$Message" } |