Update StackMonkey.ps1
This commit is contained in:
@@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
# STACK = Scripted Tooling for Automated Client Kickoff
|
||||||
# MONKEY = Module-based Onboarding & Next-step Kickoff Engine Yoke
|
# MONKEY = Module-based Onboarding & Next-step Kickoff Engine Yoke
|
||||||
# Conveys the idea of coupling tasks together and keeping them under control.
|
# Conveys the idea of coupling tasks together and keeping them under control.
|
||||||
#region Config & Task Definitions
|
#region Config & Task Definitions
|
||||||
@@ -83,7 +84,7 @@ function Write-LogHelper {
|
|||||||
[int]$CustomEventID
|
[int]$CustomEventID
|
||||||
)
|
)
|
||||||
$EventID = @{ Info=1000; Warning=2000; Error=3000; Success=4000; General=1000 }[$Level]
|
$EventID = @{ Info=1000; Warning=2000; Error=3000; Success=4000; General=1000 }[$Level]
|
||||||
$Icon = @{ Info="📝"; Warning="⚠️"; Error="❌"; Success="✅"; General="📦" }[$Level]
|
$Icon = @{Info=[System.Char]::ConvertFromUtf32(0x1F4CB);Warning=[char]0x26A0;Error=[char]0x274C;Success=[char]0x2705;General=[char]0x1F4E6}[$Level]
|
||||||
$logEntry = [PSCustomObject]@{
|
$logEntry = [PSCustomObject]@{
|
||||||
Timestamp = (Get-Date).ToString("yyyy-MM-dd HH:mm:ss")
|
Timestamp = (Get-Date).ToString("yyyy-MM-dd HH:mm:ss")
|
||||||
Level = $Level
|
Level = $Level
|
||||||
|
|||||||
Reference in New Issue
Block a user