formatters/formatters.psm1

<#
Try/cath to avaoid error when recreating the type in case we relaunch the script
 
LogFormatter is for compatibility purpose, created at first.
It will be removed in a later version
 
#>


try {
    Add-Type -TypeDefinition @"
   public enum LogFormatter
   {
      FileDefault,
      FileNoIndent,
      EventlogDefault,
      ConsoleDefault,
      MailDefault,
      ccmtrace
   }
"@
 
}catch{}

try {
Add-Type -TypeDefinition @"
   public enum uLogFormatter
   {
      FileDefault,
      FileNoIndent,
      EventlogDefault,
      ConsoleDefault,
      MailDefault,
      ccmtrace
   }
"@
 
}catch{}