Added 'autoflush' to Catalyst::Log + enabled during setup
authorHenry Van Styn <vanstyn@intellitree.com>
Mon, 12 May 2014 18:36:57 +0000 (14:36 -0400)
committerHenry Van Styn <vanstyn@intellitree.com>
Mon, 12 May 2014 18:36:57 +0000 (14:36 -0400)
commitcae5df2cd085e4e4e2a1aca25e9842df4ea1519f
treefde8275744afcf82d7c0c13b12aeb49962fb23d2
parentc13f6e7ecb789a860ee01f163a5e4b66a4854186
Added 'autoflush' to Catalyst::Log + enabled during setup

The default logger now has an 'autoflush' flag to cause log messages to
be written immediately instead of queued. This is now set to true during
setup so that log messages show up in real time (i.e. when using the
test server).

It is currently turned back off at the end of setup for backward
compatability (specifically for Static::Simple), however, mst has
suggested that we change the API such that plugins like S::S are
responsible for turning off autoflush themselves if they need to.

See in-code comments for more details.
lib/Catalyst.pm
lib/Catalyst/Log.pm [changed mode: 0644->0755]