/[Frey]/trunk/lib/Frey/Bootstrap.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/lib/Frey/Bootstrap.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1115 - (show annotations)
Mon Jun 29 18:40:38 2009 UTC (14 years, 10 months ago) by dpavlin
File size: 384 byte(s)
fix strict critic
1 package Frey::Bootstrap;
2
3 =head1 DESCRIPTION
4
5 Bootstrap L<Frey> framework into existence
6
7 =cut
8
9 use warnings;
10 use strict;
11
12 use File::Tee qw/tee/;
13 use Carp qw/croak/;
14
15 our $log_path;
16
17 if ( ! $log_path && ! $ENV{FREY_NO_LOG}) {
18 $log_path ||= 'var/log/' . time() . '.log';
19
20 tee STDERR, {
21 # prefix => $0 . "[$$]: ",
22 reopen => $log_path,
23 };
24
25 warn "# tee STDERR -> $log_path";
26 }
27
28 1;

  ViewVC Help
Powered by ViewVC 1.1.26