Public/Utilities/Clear-EdenLog.ps1
function Clear-EdenLog { <# .SYNOPSIS Building the service. .DESCRIPTION Building the service. by calling the local './Eden/Building/Build-Service.ps1' script. #> [CmdletBinding()] param( # The name of the local or global settins file to pass to the Eden script. [Alias("sn")] [String] $SettingsName, # The additional arguments to pass to the Eden script. [Alias("aa")] [HashTable] $AdditionalArguments ) $location = Get-Location try { $settings = Get-EdenSettings -Name $SettingsName $loggingPrefix = "$($settings.SolutionName) $($settings.ServiceName) $($settings.Name) Logging" Write-EdenInfo "Starting: Clearing Eden logs: '$($settings.EdenOutputFile)'" $loggingPrefix Remove-Item $settings.EdenOutputFile -Force Write-EdenInfo "Finished: Clearing Eden logs: '$($settings.EdenOutputFile)'" $loggingPrefix } catch { Write-EdenError "Error: Clearing Eden logs: '$($settings.EdenOutputFile)' Message: '$($_.Exception.Message)'" $loggingPrefix throw } finally { Set-Location $location } } New-Alias ` -Name e-ucl ` -Value Clear-EdenLog ` -Force |