Skip to content

Instantly share code, notes, and snippets.

@ninmonkey
Last active July 21, 2024 18:50
Show Gist options
  • Save ninmonkey/5e159bbb40f7b91dde76eabc91a68193 to your computer and use it in GitHub Desktop.
Save ninmonkey/5e159bbb40f7b91dde76eabc91a68193 to your computer and use it in GitHub Desktop.
Log Locations for several apps, in one place. Started: 2024-07

About

Log Locations for several apps, in one place. Started: 2024-07

See LogPaths.yml

Common Environment variables

Env Var Path
USERPROFILE "C:\Users\username"
LOCALAPPDATA "C:\Users\username\AppData\Local"
APPDATA "C:\Users\username\AppData\Roaming"
TEMP "C:\Users\username\AppData\Local\Temp"
CommonProgramFiles "C:\Program Files\Common Files"
CommonProgramFiles(x86) "C:\Program Files (x86)\Common Files"
CommonProgramW6432 "C:\Program Files\Common Files"
ProgramData "C:\ProgramData"
ProgramFiles "C:\Program Files"
ProgramFiles(x86) "C:\Program Files (x86)"
ProgramW6432 "C:\Program Files"

PowerShell

Search for useful Env vars

# To See everything:
Get-ChildItem Env: 

# To only show ones that might be filepaths
gci env: | ?{ $_.Value -match '\w:\\' } 

# To only show ones that are existing filepaths # ie: this would filter %PATH%
gci env: | ?{ Test-Path $_.Value } 

Adding paths in Powershell

To represent the path: C:\Users\username\AppData\Local\Packages\SpotifyAB.SpotifyMusic_zpdnekdrzrea0 for windows explorer, you can use the env var:

%LocalAppData\Packages\SpotifyAB.SpotifyMusic_zpdnekdrzrea0

or using powershell:

Join-Path $Env:LocalAppData 'Packages\SpotifyAB.SpotifyMusic_zpdnekdrzrea0'
updated: '2024-07-21'
group: 'root'
children:
- group: 'Nvidia'
children:
- name: 'Nvidia Gfn Runtime SDK'
desc: some nvidia logging for 'GfnSdk', from c++
path: '%LocalAppData%\NVIDIA Corporation\GfnRuntimeSdk\GfnRuntimeSdk.log'
tags: [ 'nvidia', 'graphics', 'game', 'sdk' ]
- name: 'Nvidia Share: Debug.log'
tags: [ 'nvidia', 'shared', 'debug' ]
path: '%LocalAppData%\NVIDIA Corporation\NVIDIA Share\debug.log'
- group: 'steam'
desc: 'steam games, and other logs'
tags: [ 'steam', 'games', 'graphics' ]
children:
- name: 'Steam: Primary client logs'
tags: [ 'steam', 'root path', 'logs' ]
desc: 'has tons of logs named ".txt" like: "configstore_log.txt", "systemmanager" "bootstrap", "steamui" '
path: 'C:\Program Files (x86)\Steam\logs\**\*.txt'
- name: 'Steam: Game Overlay UI'
desc: 'Steam overlay UI'
tags: ['steam', 'game', 'graphics', 'overlay']
path: 'C:\Program Files (x86)\Steam\GameOverlayUI.exe.log'
- name: 'Steam: Game Overlay Render'
desc: 'Game Overlay Render but not the UI-specific portion?'
tags: ['steam', 'game', 'graphics', 'overlay']
path: 'C:\Program Files (x86)\Steam\GameOverlayRenderer.log'
- name: 'Steam: AppInfo'
tags: ['steam']
path: 'C:\Program Files (x86)\Steam\logs\appinfo_log.txt'
- name: 'Discord'
desc: 'Discord logs, temporary files'
tags: ['discord', 'chat', 'voice', 'overlay', 'temporary logs']
path: '%AppData%\discord\Local Storage\leveldb\**\*.log'
- name: 'Spotify'
tags: [ 'music', 'temporary logs' ]
desc: 'spotify native client'
path: '%LocalAppData%\Packages\SpotifyAB.SpotifyMusic_zpdnekdrzrea0\LocalCache\Spotify\Default\Local Storage\leveldb\**\*.log'
- group: 'Powershell'
desc: 'powershell logs and history'
tags: ['powershell', 'pwsh', 'history' ]
children:
- name: 'PSReadLine Console history'
desc: 'Multi-line commands are stored as backtick escaped items.'
tags: ['powershell', 'pwsh', 'history' ]
path: '%AppData%\Microsoft\Windows\PowerShell\PSReadline\ConsoleHost_history.txt'
- group: 'Javascript / Node.js'
desc: 'Javascript or Node.js related'
tags: ['node', 'javascript' ]
children:
- name: 'Node.js: npm'
desc: 'npm logs'
tags: ['npm', 'node', 'javascript' ]
path: '%LocalAppData%\npm-cache\_logs\<timestamp>-debug-0.log'
- group: 'Microsoft'
children:
- name: 'Microsoft.Windows.Search package'
desc: 'Microsoft.Windows.Search: Several search related logs are in a shared parent directory'
path: '%LocalAppData%\Packages\Microsoft.Windows.Search_cw5n1h2txyewy\LocalState\ShellFeeds\IDX_CONTENT_TASKBARHEADLINES.json'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment