Changeset 10627
- Timestamp:
- Dec 11, 2006, 2:02:53 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
Nebulous-Server/Changes (modified) (1 diff)
-
Nebulous-Server/lib/Nebulous/Server.pm (modified) (2 diffs)
-
Nebulous-Server/lib/Nebulous/Server/Log.pm (modified) (4 diffs)
-
Nebulous/Changes (modified) (1 diff)
-
Nebulous/lib/Nebulous/Server.pm (modified) (2 diffs)
-
Nebulous/lib/Nebulous/Server/Log.pm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/Changes
r10580 r10627 13 13 - change Nebulous::Server::SOAP install stub methods to bypass AUTOLOAD on 14 14 successive calls to the same method 15 - make Nebulous::Server::Log mod_perl aware 16 - change Nebulous::Server::Log to accept a Nebulous::Server::Config object 17 as a parameter instead of fetching it as a singleton 15 18 16 19 0.02 Fri Dec 2 17:36:59 HST 2005 -
trunk/Nebulous-Server/lib/Nebulous/Server.pm
r10575 r10627 1 1 # Copyright (c) 2004 Joshua Hoblitt 2 2 # 3 # $Id: Server.pm,v 1.2 1 2006-12-08 20:57:36jhoblitt Exp $3 # $Id: Server.pm,v 1.22 2006-12-12 00:02:53 jhoblitt Exp $ 4 4 5 5 package Nebulous::Server; … … 29 29 30 30 # log4perl is not avaliable until we call init() 31 Nebulous::Server::Log->init; 32 31 Nebulous::Server::Log->init($config); 33 32 my $log = Log::Log4perl::get_logger( "Nebulous::Server" ); 33 34 34 my $sql = Nebulous::Server::SQL->new; 35 35 -
trunk/Nebulous-Server/lib/Nebulous/Server/Log.pm
r4880 r10627 1 1 # Copyright (c) 2004 Joshua Hoblitt 2 2 # 3 # $Id: Log.pm,v 1. 5 2005-08-26 02:06:33 jhoblitt Exp $3 # $Id: Log.pm,v 1.6 2006-12-12 00:02:53 jhoblitt Exp $ 4 4 5 5 package Nebulous::Server::Log; … … 8 8 use warnings FATAL => qw( all ); 9 9 10 our $VERSION = '0.0 1';10 our $VERSION = '0.02'; 11 11 12 12 use Log::Log4perl; … … 14 14 15 15 sub init { 16 # test for an extern config file here 17 my $config = Nebulous::Server::Config->instance; 16 my ($self, $config) = @_; 18 17 19 18 my $dsn = $config->dsn; … … 50 49 END 51 50 52 Log::Log4perl::init( \$conf ); 51 if ($INC{'Apache/DBI.pm'} && $ENV{MOD_PERL}) { 52 Log::Log4perl::init_once( \$conf ); 53 } else { 54 Log::Log4perl::init( \$conf ); 55 } 56 57 return 1; 53 58 } 54 59 -
trunk/Nebulous/Changes
r10580 r10627 13 13 - change Nebulous::Server::SOAP install stub methods to bypass AUTOLOAD on 14 14 successive calls to the same method 15 - make Nebulous::Server::Log mod_perl aware 16 - change Nebulous::Server::Log to accept a Nebulous::Server::Config object 17 as a parameter instead of fetching it as a singleton 15 18 16 19 0.02 Fri Dec 2 17:36:59 HST 2005 -
trunk/Nebulous/lib/Nebulous/Server.pm
r10575 r10627 1 1 # Copyright (c) 2004 Joshua Hoblitt 2 2 # 3 # $Id: Server.pm,v 1.2 1 2006-12-08 20:57:36jhoblitt Exp $3 # $Id: Server.pm,v 1.22 2006-12-12 00:02:53 jhoblitt Exp $ 4 4 5 5 package Nebulous::Server; … … 29 29 30 30 # log4perl is not avaliable until we call init() 31 Nebulous::Server::Log->init; 32 31 Nebulous::Server::Log->init($config); 33 32 my $log = Log::Log4perl::get_logger( "Nebulous::Server" ); 33 34 34 my $sql = Nebulous::Server::SQL->new; 35 35 -
trunk/Nebulous/lib/Nebulous/Server/Log.pm
r4880 r10627 1 1 # Copyright (c) 2004 Joshua Hoblitt 2 2 # 3 # $Id: Log.pm,v 1. 5 2005-08-26 02:06:33 jhoblitt Exp $3 # $Id: Log.pm,v 1.6 2006-12-12 00:02:53 jhoblitt Exp $ 4 4 5 5 package Nebulous::Server::Log; … … 8 8 use warnings FATAL => qw( all ); 9 9 10 our $VERSION = '0.0 1';10 our $VERSION = '0.02'; 11 11 12 12 use Log::Log4perl; … … 14 14 15 15 sub init { 16 # test for an extern config file here 17 my $config = Nebulous::Server::Config->instance; 16 my ($self, $config) = @_; 18 17 19 18 my $dsn = $config->dsn; … … 50 49 END 51 50 52 Log::Log4perl::init( \$conf ); 51 if ($INC{'Apache/DBI.pm'} && $ENV{MOD_PERL}) { 52 Log::Log4perl::init_once( \$conf ); 53 } else { 54 Log::Log4perl::init( \$conf ); 55 } 56 57 return 1; 53 58 } 54 59
Note:
See TracChangeset
for help on using the changeset viewer.
