added support for username variable for logging
This commit is contained in:
@@ -15,7 +15,7 @@ Add-Type -AssemblyName System.Drawing
|
||||
# --- Start transcript logging ---
|
||||
try {
|
||||
$config = Import-PowerShellDataFile -Path (Join-Path $PSScriptRoot '..\config.psd1')
|
||||
$logDir = Join-Path $config.LogPath $env:USERNAME
|
||||
$logDir = [System.Environment]::ExpandEnvironmentVariables($config.LogPath)
|
||||
New-Item -ItemType Directory -Path $logDir -Force -ErrorAction SilentlyContinue | Out-Null
|
||||
Start-Transcript -Path (Join-Path $logDir 'OBSReplayBuffer-Tray.log') -Append -ErrorAction Stop
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user