Synx
This commit is contained in:
@@ -23,7 +23,7 @@ $GitHubLatestApi = "https://api.github.com/repos/grafana/alloy/releases/latest"
|
||||
function Write-Log {
|
||||
param([string]$Message, [string]$Level = "INFO")
|
||||
$line = "[{0}] [{1}] {2}" -f (Get-Date -Format "yyyy-MM-dd HH:mm:ss"), $Level, $Message
|
||||
Write-Host $line -ForegroundColor (If ($Level -eq "ERROR") { "Red" } Else { "White" })
|
||||
Write-Host $line
|
||||
}
|
||||
|
||||
function Ensure-Directory {
|
||||
|
||||
Reference in New Issue
Block a user