Windows agents should log to a file by default
|Assignee:||Josh Cooper||% Done:|
|Affected Puppet version:||2.7.6||Branch:||https://github.com/puppetlabs/puppet/pull/494|
Puppet agent defaults to using syslog. But since syslog is not commonly available on Windows, puppet agent doesn’t log anywhere by default. It is possible to use the
--logdest path option, but really we should enable a default
:file log destination within the
#2 Updated by Daniel Pittman almost 2 years ago
Josh Cooper wrote:
When running as a service, and a logdest specified, the log output is getting truncated due to #9595.
…this is nice, but isn’t the root cause of the problem on Windows. Ruby will flush internal buffers safely when it shuts down in the normal case, so something on Windows is causing it to exit uncleanly, or without the normal cleanup from triggering that flush.