Skip to main content

Webex Teams

WebexTeams​

Post message to Webex

Configuration options​

OptionTypeMandatoryDefaultDescription
LevelStringNoDefault LevelDefines the lowest logging level to logged
FormatStringNoDefault FormatDefines a custom format for the target
BotTokenStringYesN/ADefines the bot token
RoomIDStringYesN/ADefines the room id
IconsHashTableNoSee defaults belowOverride the default icons

Default icons​

  • ERROR = '🚨'
  • WARNING = 'âš ī¸'
  • INFO = 'â„šī¸'
  • DEBUG = '🔎'

Example​

Add-LoggingTarget -Name WebexTeams -Configuration @{
Level = 'DEBUG'
Format = '%{message}'
BotToken = ''
RoomID = ''
Icons = @{
ERROR = '🚨'
WARNING = 'âš ī¸'
INFO = 'â„šī¸'
DEBUG = '🔎'
}
}

Write-Log -Level 'WARNING' -Message 'Hello, Powershell!'