Skip to content

Commit 4a35911

Browse files
committed
Added details
1 parent 8025979 commit 4a35911

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,19 @@ $PSDefaultParameterValues.Set_Item('Write-Log:DisableLogging', $false)
178178

179179
- Type: `[IO.FileInfo]`
180180
- Default: *Something like: `%TEMP%\PowerShell Desktop 5.1.19041.1682 Internal.log`*
181-
```powershell
182-
[IO.Path]::Combine($env:Temp, ('PowerShell {0} {1} {2}.log' -f @(
183-
$PSVersionTable.PSEdition
184-
$PSVersionTable.PSVersion
185-
$MyInvocation.CommandOrigin
186-
))
187-
```
181+
182+
To get the exact path, run this:
183+
184+
```powershell
185+
[IO.Path]::Combine($env:Temp, ('PowerShell {0} {1} {2}.log' -f @(
186+
$PSVersionTable.PSEdition
187+
$PSVersionTable.PSVersion
188+
$MyInvocation.CommandOrigin
189+
)))
190+
```
191+
192+
> ℹ: Your `$MyInvocation.CommandOrigin` might vary between a few things, such as `Internal` or `Runspace`.
193+
> If you want to know exactly where your log file is, configure it ...
188194
189195
The default file name will vary depending on your environment.
190196
Change the location by providing the full path to the log file.

0 commit comments

Comments
 (0)