diff --git a/Examples/LoggerDemo.ps1 b/Examples/LoggerDemo.ps1 index ec65956..9a017df 100644 --- a/Examples/LoggerDemo.ps1 +++ b/Examples/LoggerDemo.ps1 @@ -2,8 +2,10 @@ # Initialize the logger with default values Start-ScriptLogger -# Alternative: Specify all possible parameters for the logger -Start-ScriptLogger -Path 'C:\Temp\test.log' -Format '{0:yyyy-MM-dd} {0:HH:mm:ss} {1} {2} {3,-11} {4}' -Level 'Verbose' -SkipEventLog -HideConsoleOutput +# Alternative: Specify all possible parameters for the logger. Of course, this +# will not log anything, if you disable the log file, the event log and the +# console output at the same time. +Start-ScriptLogger -Path 'C:\Temp\test.log' -Format '{0:yyyy-MM-dd} {0:HH:mm:ss} {1} {2} {3,-11} {4}' -Level 'Verbose' -NoLogFile -NoEventLog -NoConsoleOutput # Log an error message Write-ErrorLog -Message 'My Error Message'