Revision history for Perl extension Catalyst::Plugin::Static::Simple
+
+0.18
+ - Logging may now be enabled with the less confusing
+ MyApp->config->{static}->{logging} = 1;
+
0.17 2007-05-11 11:00:00
- Added serve_static_file, to serve a given file as static. (groditi)
use IO::File ();
use MIME::Types ();
-our $VERSION = '0.17';
+our $VERSION = '0.18';
__PACKAGE__->mk_accessors( qw/_static_file _static_debug_message/ );
$config->{ignore_dirs} ||= [];
$config->{debug} ||= $c->debug;
$config->{no_logs} = 1 unless defined $config->{no_logs};
+ $config->{no_logs} = 0 if $config->{logging};
# load up a MIME::Types object, only loading types with
# at least 1 file extension
default; static requests tend to clutter the log output and rarely
reveal anything useful. However, if you want to enable logging of static
requests, you can do so by setting
-C<MyApp-E<gt>config-E<gt>{static}-E<gt>{no_logs}> to 0.
+C<MyApp-E<gt>config-E<gt>{static}-E<gt>{logging}> to 1.
=head2 Forcing directories into static mode