puppetlabs/puppet — pull request #668 by cprice-puppet (2012-04-12 23:05:15+00:00)
Title: (#13929) Improve logging for very early failures

This adds a "force_flushqueue" method to the Log class.
This can be called prior to a system exit, to force
any queued log messages to be flushed. If no
logging destinations have been configured it will
attempt to create a console destination for the
queue to be flushed to.