File tree 2 files changed +25
-23
lines changed
2 files changed +25
-23
lines changed Original file line number Diff line number Diff line change 1
1
@ {
2
- RootModule = ' PSLog.psm1'
2
+ RootModule = ' PSLog.psm1'
3
3
4
- ModuleVersion = ' 1.0.0'
4
+ ModuleVersion = ' 1.0.0'
5
5
6
6
CompatiblePSEditions = ' Core' , ' Desktop'
7
7
8
- GUID = ' cd303a6c-f405-4dcb-b1ce-fbc2c52264e9'
8
+ GUID = ' cd303a6c-f405-4dcb-b1ce-fbc2c52264e9'
9
9
10
- Author = ' Raimund Andree, Per Pedersen'
10
+ Author = ' Raimund Andree, Per Pedersen'
11
11
12
- Description = ' Redirects stanard Write-* cmdlets to a log and offers some basic tracing functions'
12
+ Description = ' Redirects stanard Write-* cmdlets to a log and offers some basic tracing functions'
13
13
14
- CompanyName = ' AutomatedLab Team'
14
+ CompanyName = ' AutomatedLab Team'
15
15
16
- Copyright = ' 2019'
16
+ Copyright = ' 2019'
17
17
18
- PowerShellVersion = ' 5.1'
18
+ PowerShellVersion = ' 5.1'
19
19
20
- DotNetFrameworkVersion = ' 3.5'
20
+ DotNetFrameworkVersion = ' 3.5'
21
21
22
- ModuleList = @ (' PSLog' )
23
-
24
- PrivateData = @ {
25
- AutoStart = $true
26
- DefaultFolder = $null
27
- DefaultName = ' PSLog'
28
- Level = ' All'
29
- Silent = $false
30
- TruncateTypes = @ (
22
+ ModuleList = @ (' PSLog' )
23
+
24
+ RequiredModules = @ (' PSFramework' )
25
+
26
+ PrivateData = @ {
27
+ AutoStart = $true
28
+ DefaultFolder = $null
29
+ DefaultName = ' PSLog'
30
+ Level = ' All'
31
+ Silent = $false
32
+ TruncateTypes = @ (
31
33
' System.Management.Automation.ScriptBlock'
32
34
)
33
- TruncateLength = 50
35
+ TruncateLength = 50
34
36
}
35
37
}
Original file line number Diff line number Diff line change @@ -564,22 +564,22 @@ function Write-ScreenInfo
564
564
}
565
565
Info
566
566
{
567
- $Message | ForEach-Object { Microsoft.PowerShell. Utility\ Write-Host $_ }
567
+ $Message | ForEach-Object { Write-PSFMessage - Level Host $_ }
568
568
$Global :PSLog_NoNewLine = $false
569
569
}
570
570
Verbose
571
571
{
572
572
if ($VerbosePreference -eq ' Continue' )
573
573
{
574
- $Message | ForEach-Object { Microsoft.PowerShell.Utility\Write-Host $_ - ForegroundColor Cyan }
574
+ $Message | ForEach-Object { Microsoft.PowerShell.Utility\Write-Host $_ - ForegroundColor Cyan }
575
575
$Global :PSLog_NoNewLine = $false
576
576
}
577
577
}
578
578
Debug
579
579
{
580
580
if ($DebugPreference -eq ' Continue' )
581
581
{
582
- $Message | ForEach-Object { Microsoft.PowerShell.Utility\Write-Host $_ - ForegroundColor Cyan }
582
+ $Message | ForEach-Object { Microsoft.PowerShell.Utility\Write-Host $_ - ForegroundColor Cyan }
583
583
$Global :PSLog_NoNewLine = $false
584
584
}
585
585
}
@@ -601,7 +601,7 @@ function Write-ScreenInfo
601
601
}
602
602
Info
603
603
{
604
- $Message | ForEach-Object { Microsoft.PowerShell. Utility\ Write-Host " $timeCurrent |$timeDeltaString |$timeDeltaString2 | $_ " }
604
+ $Message | ForEach-Object { Write-PSFMessage - Level Host " $timeCurrent |$timeDeltaString |$timeDeltaString2 | $_ " }
605
605
}
606
606
Debug
607
607
{
You can’t perform that action at this time.
0 commit comments