test/test3_file.ps1
Import-Module ..\uLog.psd1 -WarningAction SilentlyContinue function test-log3 { Remove-Variable -Name uLOG -ErrorAction SilentlyContinue $log = New-uLog $log.AddLogHandler((New-uLogFile -Path 'c:\temp\testLog_test3_file.ps1.log')) Log-Info -Message 'Hello from test-log3' Log-Warning -Message 'Watch out ! from test-log3' -Indent 3 Log-Info -Message 'Hello from test-log3' Write-Log -Message 'YES ! from test-log3' -Level SUCCESS } test-log3 |