Skip to content

Commit

Permalink
add logfile name to runner config
Browse files Browse the repository at this point in the history
  • Loading branch information
clr2of8 committed Jul 11, 2024
1 parent 08b5ce3 commit 9fddf9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Public/config.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ $artConfig = [PSCustomObject]@{
# [optional] logfile filename configs
logFolder = "AtomicRunner-Logs"
timeLocal = (Get-Date(get-date) -uformat "%Y-%m-%d").ToString()
logFileName = "$($artConfig.timeLocal)`_$($artConfig.basehostname)-ExecLog.csv"

# amsi bypass script block (applies to Windows only)
absb = $null
Expand Down Expand Up @@ -95,7 +96,7 @@ $scriptParam = @{
MemberType = "ScriptProperty"
InputObject = $artConfig
Name = "execLogPath"
Value = { Join-Path $artConfig.atomicLogsPath "$($artConfig.timeLocal)`_$($artConfig.basehostname)-ExecLog.csv" }
Value = { Join-Path $artConfig.atomicLogsPath $artConfig.logFileName }
}
Add-Member @scriptParam

Expand Down

0 comments on commit 9fddf9f

Please sign in to comment.