calvn/chocolatey-consul

Add Consul Log File Agent Flags to chocolateyInstall.ps1?

peterfranciscook opened this issue · 0 comments

chocolateyInstall.ps1 uses NSSM to redirect stdout and stderr to "$serviceLogDirectory\consul-output.log" and "$serviceLogDirectory\consul-error.log" respectively. Could this functionality get offloaded back to consul itself via agent flags -log-file, -log-rotate-bytes, -log-rotate-duration, -log-rotate-max-files, and -log-level?

This would reduce the number of tasks for NSSM and eliminate the calls (in chocolateyInstall & chocolateyUninstall) to SchTasks.exe