Skip to content

Commit

Permalink
Added details
Browse files Browse the repository at this point in the history
  • Loading branch information
VertigoRay committed Jan 12, 2023
1 parent 8025979 commit 4a35911
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,19 @@ $PSDefaultParameterValues.Set_Item('Write-Log:DisableLogging', $false)

- Type: `[IO.FileInfo]`
- Default: *Something like: `%TEMP%\PowerShell Desktop 5.1.19041.1682 Internal.log`*
```powershell
[IO.Path]::Combine($env:Temp, ('PowerShell {0} {1} {2}.log' -f @(
$PSVersionTable.PSEdition
$PSVersionTable.PSVersion
$MyInvocation.CommandOrigin
))
```

To get the exact path, run this:

```powershell
[IO.Path]::Combine($env:Temp, ('PowerShell {0} {1} {2}.log' -f @(
$PSVersionTable.PSEdition
$PSVersionTable.PSVersion
$MyInvocation.CommandOrigin
)))
```

> ℹ: Your `$MyInvocation.CommandOrigin` might vary between a few things, such as `Internal` or `Runspace`.
> If you want to know exactly where your log file is, configure it ...
The default file name will vary depending on your environment.
Change the location by providing the full path to the log file.
Expand Down

0 comments on commit 4a35911

Please sign in to comment.