Skip to content

Instantly share code, notes, and snippets.

@rafalf
Last active August 28, 2016 15:15
Show Gist options
  • Save rafalf/75aab3690d80d70be930 to your computer and use it in GitHub Desktop.
Save rafalf/75aab3690d80d70be930 to your computer and use it in GitHub Desktop.
Logger function
#
# powershell logger function
#
function log ([string]$logdata)
{
$date = get-date
Write-Output "$date - $logdata" | Out-File $log -width 240 -Append
}
log "Script started"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment