formatters/mail.psm1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function Format-MailDefault
{
param(
    $Record
)
    $txt = @"
    <b>Level :</b> {0}<BR>
    <b>UserName : </b>{1}<BR>
    <b>ComputerName : </b>{2}<BR>
    <b>Content : </b>{4}{3}
"@
 -f ($Record.Level, 
       $env:USERNAME, 
       $env:COMPUTERNAME, 
       $Record.Message, 
       ("`t"*($Record.Indent - 1))
      )

    $txt
}