|
3 | 3 | [switch]$Testing
|
4 | 4 | )
|
5 | 5 |
|
6 |
| -$CurrentScriptVersion = "1.0.5" |
| 6 | +$CurrentScriptVersion = "1.0.6" |
7 | 7 | $global:HeaderWritten = $false
|
8 | 8 |
|
9 | 9 | #################
|
@@ -59,13 +59,14 @@ function Write-Log {
|
59 | 59 | $global:HeaderWritten = $true
|
60 | 60 | }
|
61 | 61 | $Timestamp = Get-Date -Format 'yyyy-MM-dd HH:mm:ss'
|
62 |
| - $PaddedType = $Type.PadRight(8) |
| 62 | + # $Type = "[" + $Type + "]" |
| 63 | + $PaddedType = "[" + $Type + "]" |
| 64 | + $PaddedType = $PaddedType.PadRight(10) |
63 | 65 | $Linenumber = "L" + "." + "$($MyInvocation.ScriptLineNumber)"
|
64 | 66 | if ($Linenumber.Length -eq '5') {
|
65 | 67 | $Linenumber = $Linenumber + " "
|
66 | 68 | }
|
67 | 69 | $TypeFormatted = "[{0}] {1}|{2}" -f $Timestamp, $PaddedType.ToUpper(), $Linenumber
|
68 |
| - |
69 | 70 | if ($Message) {
|
70 | 71 | $FormattedLine1 = "{0}| {1}" -f ($TypeFormatted, $Message)
|
71 | 72 | $FormattedLineWritehost = "{0}| " -f ($TypeFormatted)
|
@@ -2055,7 +2056,7 @@ Elseif ($Testing) {
|
2055 | 2056 | $MediumText = "The Hobbit is a great movie"
|
2056 | 2057 | $LongText = "The Hobbit is a great movie that we all loved and enjoyed watching"
|
2057 | 2058 | $bullet = [char]0x2022
|
2058 |
| - $Episodetext = "Season 1 $bullet Episode 1" |
| 2059 | + $Episodetext = "Season 9999 $bullet Episode 9999" |
2059 | 2060 |
|
2060 | 2061 | $ShortTextCAPS = $ShortText.ToUpper()
|
2061 | 2062 | $MediumTextCAPS = $MediumText.ToUpper()
|
|
0 commit comments