GinShell.Logging/Private/Get-LogColor.ps1

function Get-LogColor {
    param ([string]$Type)
    switch ($Type.ToLowerInvariant()) {
        'verbose'  { return 'DarkGray' }
        'debug'    { return 'Gray' }
        'action'   { return 'Cyan' }
        'success'  { return 'Green' }
        'info'     { return 'White' }
        'warning'  { return 'Yellow' }
        'error'    { return 'Red' }
        'critical' { return 'Magenta' }
        default    { return 'White' }
    }
}