18 lines
449 B
PowerShell
18 lines
449 B
PowerShell
function Write-LFLog {
|
|
param(
|
|
[string]$Message,
|
|
[ValidateSet("low","mid","high","critical")]
|
|
[string]$Severity = "low"
|
|
)
|
|
|
|
switch ($Severity) {
|
|
"low" { $color = "Gray" }
|
|
"mid" { $color = "Cyan" }
|
|
"high" { $color = "Yellow" }
|
|
"critical" { $color = "Red" }
|
|
}
|
|
|
|
Write-Host "[$Severity] $Message" -ForegroundColor $color
|
|
}
|
|
|
|
Export-ModuleMember -Function Write-LFLog |