Skip to content

Commit

Permalink
Add Script Execution Line
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaulson45 committed Nov 20, 2024
1 parent f0794a7 commit 3698bc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Diagnostics/ExchangeLogCollector/ExchangeLogCollector.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ end {
$Script:Logger = Get-NewLoggerInstance -LogName "ExchangeLogCollector-Main-Debug" -LogDirectory ("$RootFilePath$env:COMPUTERNAME")
SetWriteVerboseAction ${Function:Write-DebugLog}
SetWriteHostAction ${Function:Write-DebugLog}
Write-Verbose "Script Execution Line: $($script:MyInvocation.Line)"

Main
} finally {
Expand Down

0 comments on commit 3698bc5

Please sign in to comment.