You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(3) |
Aug
(38) |
Sep
(126) |
Oct
(23) |
Nov
(72) |
Dec
(36) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(76) |
Feb
(32) |
Mar
(19) |
Apr
(6) |
May
(54) |
Jun
(40) |
Jul
(45) |
Aug
(35) |
Sep
(51) |
Oct
(67) |
Nov
(10) |
Dec
(50) |
2004 |
Jan
(51) |
Feb
(22) |
Mar
(22) |
Apr
(28) |
May
(53) |
Jun
(99) |
Jul
(38) |
Aug
(49) |
Sep
(23) |
Oct
(29) |
Nov
(30) |
Dec
(48) |
2005 |
Jan
(15) |
Feb
(21) |
Mar
(25) |
Apr
(16) |
May
(131) |
Jun
|
Jul
(8) |
Aug
(5) |
Sep
(15) |
Oct
|
Nov
(15) |
Dec
(12) |
2006 |
Jan
(15) |
Feb
(20) |
Mar
(8) |
Apr
(10) |
May
(3) |
Jun
(16) |
Jul
(15) |
Aug
(11) |
Sep
(17) |
Oct
(27) |
Nov
(11) |
Dec
(12) |
2007 |
Jan
(19) |
Feb
(18) |
Mar
(33) |
Apr
(4) |
May
(15) |
Jun
(22) |
Jul
(19) |
Aug
(20) |
Sep
(14) |
Oct
(4) |
Nov
(34) |
Dec
(11) |
2008 |
Jan
(8) |
Feb
(18) |
Mar
(2) |
Apr
(4) |
May
(26) |
Jun
(9) |
Jul
(8) |
Aug
(8) |
Sep
(3) |
Oct
(17) |
Nov
(14) |
Dec
(4) |
2009 |
Jan
(6) |
Feb
(41) |
Mar
(21) |
Apr
(10) |
May
(21) |
Jun
|
Jul
(8) |
Aug
(4) |
Sep
(3) |
Oct
(8) |
Nov
(6) |
Dec
(5) |
2010 |
Jan
(14) |
Feb
(13) |
Mar
(7) |
Apr
(12) |
May
(4) |
Jun
(1) |
Jul
(11) |
Aug
(5) |
Sep
|
Oct
(1) |
Nov
(10) |
Dec
|
2011 |
Jan
(7) |
Feb
(3) |
Mar
(1) |
Apr
(5) |
May
|
Jun
(1) |
Jul
(6) |
Aug
(6) |
Sep
(10) |
Oct
(5) |
Nov
(4) |
Dec
(5) |
2012 |
Jan
(4) |
Feb
(5) |
Mar
(1) |
Apr
(7) |
May
(1) |
Jun
|
Jul
(2) |
Aug
|
Sep
(5) |
Oct
(5) |
Nov
(4) |
Dec
(5) |
2013 |
Jan
(6) |
Feb
|
Mar
(14) |
Apr
(9) |
May
(3) |
Jun
(2) |
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
(4) |
Dec
(6) |
2014 |
Jan
|
Feb
(1) |
Mar
(10) |
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
(4) |
Oct
(1) |
Nov
|
Dec
(4) |
2015 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
From: Mike S. <log...@pe...> - 2003-05-12 23:31:14
|
Sounds like something we should look into ... -- Mike Mike Schilli log...@pe... http://perlmeister.com http://log4perl.sourceforge.net ---------- Forwarded message ---------- Date: Mon, 12 May 2003 11:51:44 -0700 From: Scott Deboy <Sco...@Vi...> To: log...@pe... Subject: Log4X UI Hey Mike, I've developed 'version 2' of Chainsaw - a UI connected to the log4j project and originally developed to only work with log4j (java) events - I've added a lot of functionality and attempted to make it completely language-agnostic. * Support for reception of messages via XML over TCP/UDP/multicast (log4j.dtd and java.util.logging's logger.dtd) * A tab-based UI - each unique machine/application combination has events logged to a unique tab. * Colorizing * Display filtering (including regular expression support) * Saved settings/preferences * Import/export events on a tab from XML format * Many more features I've already contacted Nicko of the log4Net project and he's updating his udp support to generate xml events using the log4j.dtd. Please feel free to visit the jakarta-log4j-sandbox project and build the project using the chainsaw xml file and ant. Example configuration files and an 'event generator' application are provided to get a feel for how the app works. Hopefully it's a useful UI to Perl guys - let me know if you'd like more information or need help running the app (I'm trying to build support from as many language fronts as I can). Scott Deboy |
From: James.FitzGibbon <Jam...@ta...> - 2003-05-12 12:20:59
|
Looks fine to me. I should have thought to ask my co-worker who reviewed my patch to run it on ActiveState. I don't have it installed, but he was born and bred on the Windows world. Thanks. -- j. James FitzGibbon Consultant, Ajilon Services, TTS-3D@CC-950 jam...@ta... voice/fax 612-304-6121/3277 > -----Original Message----- > From: Mike Schilli [mailto:log...@pe...] > Sent: Saturday, May 10, 2003 10:22 PM > To: James.FitzGibbon; Log4perl Devel Mailing List > Subject: Log::Log4perl/Safe Compartments Problem on Win32 > > > Hey James, > > looks like the Perl for Win32 doesn't have getpwuid() > implemented, so the > test suite fails there. I've replaced getpwuid() by stat() > (which is in > the same Safe category), and also fixed a couple of warnings, can you > please verify the test cases are ok: > > Index: t/041SafeEval.t > =================================================================== > RCS file: /cvsroot/log4perl/Log-Log4perl/t/041SafeEval.t,v > retrieving revision 1.1 > diff -a -u -r1.1 041SafeEval.t > --- t/041SafeEval.t 6 May 2003 05:30:34 -0000 1.1 > +++ t/041SafeEval.t 11 May 2003 02:41:14 -0000 > @@ -11,7 +11,7 @@ > > ok(1); # If we made it this far, we're ok. > > -my $example_log = "example" . getpwuid($<) . ".log"; > +my $example_log = "example" . (stat($0))[9] . ".log"; > unlink($example_log); > > # test that unrestricted code works properly > @@ -19,7 +19,7 @@ > my $config = <<'END'; > log4perl.logger = INFO, Main > log4perl.appender.Main = Log::Dispatch::File > - log4perl.appender.Main.filename = sub { "example" . > getpwuid($<) . ".log" } > + log4perl.appender.Main.filename = sub { "example" . > (stat($0))[9] . ".log" } > log4perl.appender.Main.layout = > Log::Log4perl::Layout::SimpleLayout > END > eval { Log::Log4perl->init( \$config ) }; > @@ -107,6 +107,7 @@ > # Add a new name/mask to the map > $Foo::foo = 1; > @Foo::bar = ( 1, 2, 3 ); > +push @Foo::bar, $Foo::foo; # Some nonsense to avoid 'used > only once' warning > Log::Log4perl::Config->vars_shared_with_safe_compartment( > Foo => [ '$foo', '@bar' ] ); > ok( keys %{ > Log::Log4perl::Config->vars_shared_with_safe_compartment() }, > $numkeys + 1, 'can add a new name/mask to the map'); > @@ -132,7 +133,7 @@ > Log::Log4perl::Config::allow_code('restrictive'); > undef @Log::Log4perl::ALLOWED_CODE_OPS_IN_CONFIG_FILE; > eval { Log::Log4perl->init( \$config ) }; > -my $failed = $@ ? 1 : 0; > +$failed = $@ ? 1 : 0; > ok($failed, 1, > 'global cspec with harmful code rejected on restrictive setting'); > > @@ -147,7 +148,7 @@ > Log::Log4perl::Config->allow_code('restrictive'); > undef @Log::Log4perl::ALLOWED_CODE_OPS_IN_CONFIG_FILE; > eval { Log::Log4perl->init( \$config ) }; > -my $failed = $@ ? 1 : 0; > +$failed = $@ ? 1 : 0; > ok($failed, 0, 'global cspec with legal code allowed on > restrictive setting'); > > # Local cspec with illegal code > @@ -160,7 +161,7 @@ > Log::Log4perl::Config::allow_code('restrictive'); > undef @Log::Log4perl::ALLOWED_CODE_OPS_IN_CONFIG_FILE; > eval { Log::Log4perl->init( \$config ) }; > -my $failed = $@ ? 1 : 0; > +$failed = $@ ? 1 : 0; > ok($failed, 1, 'local cspec with harmful code rejected on > restrictive setting'); > > # Global cspec with legal code > @@ -173,7 +174,7 @@ > Log::Log4perl::Config::allow_code('restrictive'); > undef @Log::Log4perl::ALLOWED_CODE_OPS_IN_CONFIG_FILE; > eval { Log::Log4perl->init( \$config ) }; > -my $failed = $@ ? 1 : 0; > +$failed = $@ ? 1 : 0; > ok($failed, 0, 'local cspec with legal code allowed on > restrictive setting'); > > unlink($example_log); > > __END__ > > -- Mike > > Mike Schilli > log...@pe... > http://perlmeister.com > http://log4perl.sourceforge.net > > ---------- Forwarded message ---------- > Date: Sat, 10 May 2003 16:43:30 -0700 (PDT) > From: DH <cra...@ya...> > To: cpa...@pe... > Cc: m...@pe... > Subject: FAIL Log-Log4perl-0.31 MSWin32-x86-multi-thread 4.0 > > This distribution has been tested as part of the cpan-testers > effort to test as many new uploads to CPAN as possible. See > http://testers.cpan.org/ > > Please cc any replies to cpa...@pe... to keep other > test volunteers informed and to prevent any duplicate effort. > > -- > > > E:\new\Tie-File-0.95>perl Makefile.PL > Checking if your kit is complete... > Looks good > Writing Makefile for Tie::File > > E:\new\Tie-File-0.95>nmake test > > Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 > Copyright (C) Microsoft Corp 1988-1998. All rights reserved. > > cp lib/Tie/File.pm blib\lib\Tie/File.pm > C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" > "test_harness(0, 'blib\lib', > 'blib\arch')" t\00_version.t t\01_gen.t t\02_fetchs > ize.t t\03_longfetch.t t\04_splice.t t\05_size.t > t\06_fixrec.t t\07_rv_splice.t t\08_ro.t > t\09_gen_rs.t t\10_splice_rs.t t\11_rv_splice_rs.t > t\12_longfetch_rs.t t\13_size_rs.t t\14_lock.t > t\15_pushpop.t t\16_handle.t t\17_misc_meth.t > t\18_rs_fixrec.t t\19_cache.t t\20_cache_full. > t t\21_win32.t t\22_autochomp.t t\23_rv_ac_splice.t > t\24_cache_loop.t t\25_gen_nocache.t > t\26_twrite.t t\27_iwrite.t t\28_mtwrite.t t\29_dow > ncopy.t t\29a_upcopy.t t\30_defer.t t\31_autodefer.t > t\32_defer_misc.t t\33_defer_vs.t > t\40_abs_cache.t t\41_heap.t t\42_offset.t > t\00_version.........ok > t\01_gen.............ok > t\02_fetchsize.......ok > t\03_longfetch.......ok > t\04_splice..........ok > 1/118 skipped: (versions through 5.7.3 dump core here.) > t\05_size............ok > t\06_fixrec..........FAILED tests 3-4 > Failed 2/5 tests, 60.00% okay > t\07_rv_splice.......ok > t\08_ro..............ok > t\09_gen_rs..........FAILED tests 44-47 > Failed 4/58 tests, 93.10% okay > t\10_splice_rs.......ok > 1/101 skipped: (versions through 5.7.3 dump core here.) > t\11_rv_splice_rs....ok > t\12_longfetch_rs....ok > t\13_size_rs.........ok > t\14_lock............ok > t\15_pushpop.........ok > t\16_handle..........ok > 1/39 skipped: (MSWin32 has broken pipe semantics) > t\17_misc_meth.......ok > t\18_rs_fixrec.......ok > t\19_cache...........ok > t\20_cache_full......ok > t\21_win32...........ok > t\22_autochomp.......FAILED tests 3, 6, 9, 12, 15, 18, 21, > 24, 27, 30, 33, 36, 39, 42, 45, 48, > 51-52, 54 > Failed 19/71 tests, 73.24% okay > t\23_rv_ac_splice....ok > t\24_cache_loop......skipped > all skipped: no reason given > t\25_gen_nocache.....ok > t\26_twrite..........ok > t\27_iwrite..........ok > t\28_mtwrite.........ok > t\29_downcopy........The Unsupported function alarm function > is unimplemented at t\29_downcopy.t > line 276. > ...propagated at t\29_downcopy.t line 287. > t\29_downcopy........dubious > Test returned status 22 (wstat 5632, 0x1600) > DIED. FAILED tests 3-718 > Failed 716/718 tests, 0.28% okay > t\29a_upcopy.........The Unsupported function alarm function > is unimplemented at t\29a_upcopy.t > line 130. > ...propagated at t\29a_upcopy.t line 140. > t\29a_upcopy.........dubious > Test returned status 22 (wstat 5632, 0x1600) > DIED. FAILED tests 2-55 > Failed 54/55 tests, 1.82% okay > t\30_defer...........ok > t\31_autodefer.......ok > t\32_defer_misc......ok > t\33_defer_vs........ok > t\40_abs_cache.......ok > t\41_heap............ok > t\42_offset..........NOK 4# Failed test (t\42_offset.t at line 37) > # got: '8' > # expected: undef > t\42_offset..........NOK 7# Failed test (t\42_offset.t at line 42) > # got: '14' > # expected: undef > t\42_offset..........ok 10/24# Failed test (t\42_offset.t > at line 48) > # got: '23' > # expected: undef > # Failed test (t\42_offset.t at line 55) > # got: '29' > # expected: undef > t\42_offset..........ok 13/24# Looks like you failed 4 tests of 24. > t\42_offset..........dubious > Test returned status 4 (wstat 1024, 0x400) > DIED. FAILED tests 4, 7, 11, 16 > Failed 4/24 tests, 83.33% okay > Failed Test Stat Wstat Total Fail Failed List of Failed > -------------------------------------------------------------- > ----------------- > t\06_fixrec.t 5 2 40.00% 3-4 > t\09_gen_rs.t 58 4 6.90% 44-47 > t\22_autochomp.t 71 19 26.76% 3 6 9 12 15 > 18 21 24 27 30 33 > 36 39 42 45 > 48 51-52 54 t\29_downcopy.t 22 5632 718 1432 199.44% 3-718 > t\29a_upcopy.t 22 5632 55 108 196.36% 2-55 > t\42_offset.t 4 1024 24 4 16.67% 4 7 11 16 > 1 test and 3 subtests skipped. > Failed 6/38 test scripts, 84.21% okay. 799/4704 subtests > failed, 83.01% okay. > NMAKE : fatal error U1077: 'C:\Perl\bin\perl.exe' : return code '0x2' > Stop. > > E:\new\Tie-File-0.95> > E:\new\Tie-File-0.95>perl -MExtUtils::Command::MM > -e"test_harness(1, 'blib\lib', 'blib\arch')" > t\06_fixrec.t t\09_gen_rs.t t\22_autochomp.t > t\29_downcopy.t t\29a_upcopy.t t\42_offset.t > t\06_fixrec.......1..5 > ok 1 > ok 2 > ok 3 > ok 4 > ok 5 > ok > t\09_gen_rs.......1..58 > ok 1 > ok 2 > ok 3 > ok 4 > ok 5 > ok 6 > ok 7 > ok 8 > ok 9 > ok 10 > ok 11 > ok 12 > ok 13 > ok 14 > ok 15 > ok 16 > ok 17 > ok 18 > ok 19 > ok 20 > ok 21 > ok 22 > ok 23 > ok 24 > ok 25 > ok 26 > ok 27 > ok 28 > ok 29 > ok 30 > ok 31 > ok 32 > ok 33 > ok 34 > ok 35 > ok 36 > ok 37 > ok 38 > ok 39 > ok 40 > ok 41 > ok 42 > ok 43 > not ok 44 # expected <00oops0>, got <blahblahblahrec3blah00oops0> > not ok 45 # fetch expected 0, got blahblahblahrec3blah0 > not ok 46 # expected <0bah0oops0>, got > <blahblahblahrec3blah0bah0oops0> > not ok 47 # fetch expected 0, got blahblahblahrec3blah0 > ok 48 > ok 49 > ok 50 > ok 51 > ok 52 > ok 53 > ok 54 > ok 55 > ok 56 > ok 57 > ok 58 > FAILED tests 44-47 > Failed 4/58 tests, 93.10% okay > t\22_autochomp....1..71 > ok 1 > ok 2 > not ok 3 > # expected <rec0\r\n>, got <rec0\r\nrec1\r\nrec2\r\n\r\n> > ok 4 > ok 5 > not ok 6 > # expected <rec0\r\nrec1\r\n>, got <rec0\r\nrec1\r\nrec2\r\n\r\n> > ok 7 > ok 8 > not ok 9 > # expected <rec0\r\nrec1\r\nrec2\r\n>, got > <rec0\r\nrec1\r\nrec2\r\n\r\n> > ok 10 > ok 11 > not ok 12 > # expected <new0\r\nrec1\r\nrec2\r\n>, got > <new0\r\nrec1\r\nrec2\r\n\r\n> > ok 13 > ok 14 > not ok 15 > # expected <new0\r\nnew1\r\nrec2\r\n>, got > <new0\r\nnew1\r\nrec2\r\n\r\n> > ok 16 > ok 17 > not ok 18 > # expected <new0\r\nnew1\r\nnew2\r\n>, got > <new0\r\nnew1\r\nnew2\r\n\r\n> > ok 19 > ok 20 > not ok 21 > # expected <long0\r\nnew1\r\nnew2\r\n>, got > <long0\r\nnew1\r\nnew2\r\n\r\n> > ok 22 > ok 23 > not ok 24 > # expected <long0\r\nlong1\r\nnew2\r\n>, got > <long0\r\nlong1\r\nnew2\r\n\r\n> > ok 25 > ok 26 > not ok 27 > # expected <long0\r\nlong1\r\nlong2\r\n>, got > <long0\r\nlong1\r\nlong2\r\n\r\n> > ok 28 > ok 29 > not ok 30 > # expected <long0\r\nlonger1\r\nlong2\r\n>, got > <long0\r\nlonger1\r\nlong2\r\n\r\n> > ok 31 > ok 32 > not ok 33 > # expected <longer0\r\nlonger1\r\nlong2\r\n>, got > <longer0\r\nlonger1\r\nlong2\r\n\r\n> > ok 34 > ok 35 > not ok 36 > # expected <short0\r\nlonger1\r\nlong2\r\n>, got > <short0\r\nlonger1\r\nlong2\r\n\r\n> > ok 37 > ok 38 > not ok 39 > # expected <short0\r\nshort1\r\nlong2\r\n>, got > <short0\r\nshort1\r\nlong2\r\n\r\n> > ok 40 > ok 41 > not ok 42 > # expected <short0\r\nshort1\r\nshort2\r\n>, got > <short0\r\nshort1\r\nshort2\r\n\r\n> > ok 43 > ok 44 > not ok 45 > # expected <short0\r\nsh1\r\nshort2\r\n>, got > <short0\r\nsh1\r\nshort2\r\n\r\n> > ok 46 > ok 47 > not ok 48 > # expected <sh0\r\nsh1\r\nshort2\r\n>, got > <sh0\r\nsh1\r\nshort2\r\n\r\n> > ok 49 > ok 50 > ok 51 > ok 52 > ok 53 > ok 54 > ok 55 > ok 56 > ok 57 > ok 58 > ok 59 > ok 60 > ok 61 > ok 62 > ok 63 > ok 64 > ok 65 > ok 66 > ok 67 > ok 68 > ok 69 > ok 70 > ok 71 > FAILED tests 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, > 42, 45, 48 > Failed 16/71 tests, 77.46% okay > t\29_downcopy.....The Unsupported function alarm function is > unimplemented at t\29_downcopy.t line > 276. > ...propagated at t\29_downcopy.t line 287. > 1..718 > ok 1 > ok 2 > dubious > Test returned status 22 (wstat 5632, 0x1600) > DIED. FAILED tests 3-718 > Failed 716/718 tests, 0.28% okay > t\29a_upcopy......The Unsupported function alarm function is > unimplemented at t\29a_upcopy.t line > 130. > ...propagated at t\29a_upcopy.t line 140. > 1..55 > ok 1 > dubious > Test returned status 22 (wstat 5632, 0x1600) > DIED. FAILED tests 2-55 > Failed 54/55 tests, 1.82% okay > t\42_offset.......# INC = ..\lib > E:\new\Tie-File-0.95\blib\lib E:\new\Tie-File-0.95\blib\arch > C:/Perl/lib C:/Perl/site/lib . C:/Perl/lib C:/ > Perl/site/lib . > 1..24 > ok 1 - use Tie::File; > ok 2 > ok 3 - first one always there > ok 4 - no offsets yet > ok 5 - first is ok > ok 6 - and second ok > ok 7 - third undef > ok 8 - first is ok > ok 9 - and second ok > ok 10 - and third ok > ok 11 - fourth undef > ok 12 - first is ok > ok 13 - and second ok > ok 14 - and third ok > ok 15 - and fourth ok > ok 16 - fourth undef > ok 17 - first is ok > ok 18 - and second ok > ok 19 - and third ok > ok 20 - and fourth ok > ok 21 - and fifth ok > ok 22 - and fifth ok > ok 23 - and fourth changed ok > ok 24 - and fifth ok > ok > Failed Test Stat Wstat Total Fail Failed List of Failed > -------------------------------------------------------------- > ----------------- > t\09_gen_rs.t 58 4 6.90% 44-47 > t\22_autochomp.t 71 16 22.54% 3 6 9 12 15 > 18 21 24 27 30 33 > 36 39 42 45 48 > t\29_downcopy.t 22 5632 718 1432 199.44% 3-718 > t\29a_upcopy.t 22 5632 55 108 196.36% 2-55 > Failed 4/6 test scripts, 33.33% okay. 790/931 subtests > failed, 15.15% okay. > > E:\new\Tie-File-0.95>scite *.PL > > E:\new\Tie-File-0.95>cd .. > > E:\new>box Log-Log4perl-0.31 > Log-Log4perl-0.31/ > Log-Log4perl-0.31/t/ > Log-Log4perl-0.31/t/034DBI.t > Log-Log4perl-0.31/t/008ConfCat.t > Log-Log4perl-0.31/t/023Date.t > Log-Log4perl-0.31/t/018Init.t > Log-Log4perl-0.31/t/041SafeEval.t > Log-Log4perl-0.31/t/026FileApp.t > Log-Log4perl-0.31/t/040Filter.t > Log-Log4perl-0.31/t/002Logger.t > Log-Log4perl-0.31/t/deeper1.expected > Log-Log4perl-0.31/t/016Export.t > Log-Log4perl-0.31/t/038XML-DOM1.t > Log-Log4perl-0.31/t/031NDC.t > Log-Log4perl-0.31/t/030LDLevel.t > Log-Log4perl-0.31/t/015fltmsg.t > Log-Log4perl-0.31/t/003Layout.t > Log-Log4perl-0.31/t/037JWin32Event.t > Log-Log4perl-0.31/t/022Wrap.t > Log-Log4perl-0.31/t/011JFile.t > Log-Log4perl-0.31/t/029SysWide.t > Log-Log4perl-0.31/t/testdisp.pl > Log-Log4perl-0.31/t/024WarnDieCarp.t > Log-Log4perl-0.31/t/039XML-DOM2.t > Log-Log4perl-0.31/t/deeper7.expected > Log-Log4perl-0.31/t/deeper6.expected > Log-Log4perl-0.31/t/032JRollFile.t > Log-Log4perl-0.31/t/014ConfErrs.t > Log-Log4perl-0.31/t/005Config-Perl.t > Log-Log4perl-0.31/t/012Deeper.t > Log-Log4perl-0.31/t/010JConsole.t > Log-Log4perl-0.31/t/017Watch.t > Log-Log4perl-0.31/t/020Easy.t > Log-Log4perl-0.31/t/compare.pl > Log-Log4perl-0.31/t/025CustLevels.t > Log-Log4perl-0.31/t/027Watch2.t > Log-Log4perl-0.31/t/013Bench.t > Log-Log4perl-0.31/t/019Warn.t > Log-Log4perl-0.31/t/006Config-Java.t > Log-Log4perl-0.31/t/033UsrCspec.t > Log-Log4perl-0.31/t/009Deuce.t > Log-Log4perl-0.31/t/001Level.t > Log-Log4perl-0.31/t/007LogPrio.t > Log-Log4perl-0.31/t/036JSyslog.t > Log-Log4perl-0.31/t/021AppThres.t > Log-Log4perl-0.31/t/004Config.t > Log-Log4perl-0.31/t/035JDBCAppender.t > Log-Log4perl-0.31/t/028Additivity.t > Log-Log4perl-0.31/lib/ > Log-Log4perl-0.31/lib/Log/ > Log-Log4perl-0.31/lib/Log/Log4perl/ > Log-Log4perl-0.31/lib/Log/Log4perl/JavaMap/ > Log-Log4perl-0.31/lib/Log/Log4perl/JavaMap/ConsoleAppender.pm > Log-Log4perl-0.31/lib/Log/Log4perl/JavaMap/FileAppender.pm > Log-Log4perl-0.31/lib/Log/Log4perl/JavaMap/JDBCAppender.pm > Log-Log4perl-0.31/lib/Log/Log4perl/JavaMap/TestBuffer.pm > Log-Log4perl-0.31/lib/Log/Log4perl/JavaMap/SyslogAppender.pm > Log-Log4perl-0.31/lib/Log/Log4perl/JavaMap/RollingFileAppender.pm > Log-Log4perl-0.31/lib/Log/Log4perl/JavaMap/NTEventLogAppender.pm > Log-Log4perl-0.31/lib/Log/Log4perl/MDC.pm > Log-Log4perl-0.31/lib/Log/Log4perl/Layout.pm > Log-Log4perl-0.31/lib/Log/Log4perl/Layout/ > Log-Log4perl-0.31/lib/Log/Log4perl/Layout/SimpleLayout.pm > Log-Log4perl-0.31/lib/Log/Log4perl/Layout/NoopLayout.pm > Log-Log4perl-0.31/lib/Log/Log4perl/Layout/PatternLayout.pm > Log-Log4perl-0.31/lib/Log/Log4perl/Filter.pm > Log-Log4perl-0.31/lib/Log/Log4perl/Config.pm > Log-Log4perl-0.31/lib/Log/Log4perl/FAQ.pm > Log-Log4perl-0.31/lib/Log/Log4perl/Appender/ > Log-Log4perl-0.31/lib/Log/Log4perl/Appender/DBI.pm > Log-Log4perl-0.31/lib/Log/Log4perl/Appender/TestBuffer.pm > Log-Log4perl-0.31/lib/Log/Log4perl/Appender/TestArrayBuffer.pm > Log-Log4perl-0.31/lib/Log/Log4perl/Filter/ > Log-Log4perl-0.31/lib/Log/Log4perl/Filter/LevelMatch.pm > Log-Log4perl-0.31/lib/Log/Log4perl/Filter/Boolean.pm > Log-Log4perl-0.31/lib/Log/Log4perl/Filter/LevelRange.pm > Log-Log4perl-0.31/lib/Log/Log4perl/Filter/StringMatch.pm > Log-Log4perl-0.31/lib/Log/Log4perl/JavaMap.pm > Log-Log4perl-0.31/lib/Log/Log4perl/Appender.pm > Log-Log4perl-0.31/lib/Log/Log4perl/DateFormat.pm > Log-Log4perl-0.31/lib/Log/Log4perl/Logger.pm > Log-Log4perl-0.31/lib/Log/Log4perl/Config/ > Log-Log4perl-0.31/lib/Log/Log4perl/Config/Watch.pm > Log-Log4perl-0.31/lib/Log/Log4perl/Config/PropertyConfigurator.pm > Log-Log4perl-0.31/lib/Log/Log4perl/Config/DOMConfigurator.pm > Log-Log4perl-0.31/lib/Log/Log4perl/NDC.pm > Log-Log4perl-0.31/lib/Log/Log4perl/Level.pm > Log-Log4perl-0.31/lib/Log/Log4perl.pm > Log-Log4perl-0.31/Changes > Log-Log4perl-0.31/MANIFEST > Log-Log4perl-0.31/eg/ > Log-Log4perl-0.31/eg/log4j-manual-3.conf > Log-Log4perl-0.31/eg/log4j-file-append-perl.conf > Log-Log4perl-0.31/eg/jabber.conf > Log-Log4perl-0.31/eg/log4j-manual-1.conf > Log-Log4perl-0.31/eg/log4j-manual-2.conf > Log-Log4perl-0.31/eg/syslog.pl > Log-Log4perl-0.31/eg/5005it.pl > Log-Log4perl-0.31/eg/log4j-file-append-java.conf > Log-Log4perl-0.31/xml/ > Log-Log4perl-0.31/xml/log4j-1.2.dtd > Log-Log4perl-0.31/xml/log4perl.dtd > Log-Log4perl-0.31/LICENSE > Log-Log4perl-0.31/README > Log-Log4perl-0.31/MANIFEST.SKIP > Log-Log4perl-0.31/Makefile.PL > Checking if your kit is complete... > Looks good > Writing Makefile for Log::Log4perl > > Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 > Copyright (C) Microsoft Corp 1988-1998. All rights reserved. > > cp lib/Log/Log4perl/Filter.pm blib\lib\Log/Log4perl/Filter.pm > cp lib/Log/Log4perl/Filter/LevelRange.pm > blib\lib\Log/Log4perl/Filter/LevelRange.pm > cp lib/Log/Log4perl/JavaMap/FileAppender.pm > blib\lib\Log/Log4perl/JavaMap/FileAppender.pm > cp lib/Log/Log4perl/Filter/Boolean.pm > blib\lib\Log/Log4perl/Filter/Boolean.pm > cp lib/Log/Log4perl/Appender/DBI.pm > blib\lib\Log/Log4perl/Appender/DBI.pm > cp lib/Log/Log4perl/JavaMap/SyslogAppender.pm > blib\lib\Log/Log4perl/JavaMap/SyslogAppender.pm > cp lib/Log/Log4perl/JavaMap/RollingFileAppender.pm > blib\lib\Log/Log4perl/JavaMap/RollingFileAppender.pm > cp lib/Log/Log4perl/FAQ.pm blib\lib\Log/Log4perl/FAQ.pm > cp lib/Log/Log4perl/MDC.pm blib\lib\Log/Log4perl/MDC.pm > cp lib/Log/Log4perl.pm blib\lib\Log/Log4perl.pm > cp lib/Log/Log4perl/Layout.pm blib\lib\Log/Log4perl/Layout.pm > cp lib/Log/Log4perl/Filter/StringMatch.pm > blib\lib\Log/Log4perl/Filter/StringMatch.pm > cp lib/Log/Log4perl/Config/PropertyConfigurator.pm > blib\lib\Log/Log4perl/Config/PropertyConfigurator.pm > cp lib/Log/Log4perl/Config/DOMConfigurator.pm > blib\lib\Log/Log4perl/Config/DOMConfigurator.pm > cp lib/Log/Log4perl/NDC.pm blib\lib\Log/Log4perl/NDC.pm > cp lib/Log/Log4perl/Level.pm blib\lib\Log/Log4perl/Level.pm > cp lib/Log/Log4perl/Config/Watch.pm > blib\lib\Log/Log4perl/Config/Watch.pm > cp lib/Log/Log4perl/Layout/NoopLayout.pm > blib\lib\Log/Log4perl/Layout/NoopLayout.pm > cp lib/Log/Log4perl/Logger.pm blib\lib\Log/Log4perl/Logger.pm > cp lib/Log/Log4perl/JavaMap/ConsoleAppender.pm > blib\lib\Log/Log4perl/JavaMap/ConsoleAppender.pm > cp lib/Log/Log4perl/Config.pm blib\lib\Log/Log4perl/Config.pm > cp lib/Log/Log4perl/Appender/TestBuffer.pm > blib\lib\Log/Log4perl/Appender/TestBuffer.pm > cp lib/Log/Log4perl/Appender.pm blib\lib\Log/Log4perl/Appender.pm > cp lib/Log/Log4perl/JavaMap/TestBuffer.pm > blib\lib\Log/Log4perl/JavaMap/TestBuffer.pm > cp lib/Log/Log4perl/Filter/LevelMatch.pm > blib\lib\Log/Log4perl/Filter/LevelMatch.pm > cp lib/Log/Log4perl/DateFormat.pm blib\lib\Log/Log4perl/DateFormat.pm > cp lib/Log/Log4perl/JavaMap/NTEventLogAppender.pm > blib\lib\Log/Log4perl/JavaMap/NTEventLogAppender.pm > cp lib/Log/Log4perl/Layout/PatternLayout.pm > blib\lib\Log/Log4perl/Layout/PatternLayout.pm > cp lib/Log/Log4perl/JavaMap.pm blib\lib\Log/Log4perl/JavaMap.pm > cp lib/Log/Log4perl/Appender/TestArrayBuffer.pm > blib\lib\Log/Log4perl/Appender/TestArrayBuffer.pm > cp lib/Log/Log4perl/Layout/SimpleLayout.pm > blib\lib\Log/Log4perl/Layout/SimpleLayout.pm > cp lib/Log/Log4perl/JavaMap/JDBCAppender.pm > blib\lib\Log/Log4perl/JavaMap/JDBCAppender.pm > C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" > "test_harness(0, 'blib\lib', > 'blib\arch')" t\001Level.t t\002Logger.t t\003Layou > t.t t\004Config.t t\005Config-Perl.t t\006Config-Java.t > t\007LogPrio.t t\008ConfCat.t t\009Deuce.t > t\010JConsole.t t\011JFile.t t\012Deeper. > t t\013Bench.t t\014ConfErrs.t t\015fltmsg.t t\016Export.t > t\017Watch.t t\018Init.t t\019Warn.t > t\020Easy.t t\021AppThres.t t\022Wrap.t t\02 > 3Date.t t\024WarnDieCarp.t t\025CustLevels.t t\026FileApp.t > t\027Watch2.t t\028Additivity.t > t\029SysWide.t t\030LDLevel.t t\031NDC.t t\032JR > ollFile.t t\033UsrCspec.t t\034DBI.t t\035JDBCAppender.t > t\036JSyslog.t t\037JWin32Event.t > t\038XML-DOM1.t t\039XML-DOM2.t t\040Filter.t t\0 > 41SafeEval.t > t\001Level...........ok > t\002Logger..........ok > t\003Layout..........ok > t\004Config..........ok > t\005Config-Perl.....ok > t\006Config-Java.....ok > t\007LogPrio.........ok > t\008ConfCat.........ok > t\009Deuce...........ok > t\010JConsole........Possible attempt to separate words with > commas at t\010JConsole.t line 9. > t\010JConsole........ok > t\011JFile...........Possible attempt to separate words with > commas at t\011JFile.t line 6. > t\011JFile...........ok > t\012Deeper..........ok > t\013Bench...........ok > t\014ConfErrs........ok > t\015fltmsg.........."my" variable $app masks earlier > declaration in same scope at t\015fltmsg.t > line 46. > "my" variable $app masks earlier declaration in same scope at > t\015fltmsg.t line 65. > "my" variable $app masks earlier declaration in same scope at > t\015fltmsg.t line 83. > "my" variable $app masks earlier declaration in same scope at > t\015fltmsg.t line 108. > t\015fltmsg..........ok > t\016Export..........ok > t\017Watch...........ok > t\018Init............ok > t\019Warn............ok > t\020Easy............ok > t\021AppThres........ok > t\022Wrap............ok > t\023Date............ok > t\024WarnDieCarp.....ok > t\025CustLevels......ok > t\026FileApp.........ok > t\027Watch2..........ok > t\028Additivity......ok > t\029SysWide.........ok > t\030LDLevel.........ok > t\031NDC.............ok > t\032JRollFile.......Log::Dispatch::FileRotate not installed, > skipping... > t\032JRollFile.......ok > t\033UsrCspec........ok > t\034DBI.............Use of uninitialized value in string ne at > E:\new\Log-Log4perl-0.31\blib\lib/Log/Log4perl/Appender/DBI.pm > line 227. > t\034DBI.............ok > t\035JDBCAppender....Use of uninitialized value in string ne at > E:\new\Log-Log4perl-0.31\blib\lib/Log/Log4perl/Appender/DBI.pm > line 227. > Use of uninitialized value in string ne at > E:\new\Log-Log4perl-0.31\blib\lib/Log/Log4perl/Appender/DBI.pm > line 227. > t\035JDBCAppender....ok > t\036JSyslog.........Sys::Syslog not installed, skipping... > t\036JSyslog.........ok > t\037JWin32Event.....Log::Dispatch::Win32EventLog not > installed, skipping.. > t\037JWin32Event.....ok > t\038XML-DOM1........main::Compare() called too early to > check prototype at t\compare.pl line 25. > main::Compare() called too early to check prototype at > t\compare.pl line 32. > main::Compare() called too early to check prototype at > t\compare.pl line 44. > main::Compare() called too early to check prototype at > t\compare.pl line 62. > main::Compare() called too early to check prototype at > t\compare.pl line 67. > main::Compare() called too early to check prototype at > t\compare.pl line 72. > t\038XML-DOM1........ok > t\039XML-DOM2........main::Compare() called too early to > check prototype at t/compare.pl line 25. > main::Compare() called too early to check prototype at > t/compare.pl line 32. > main::Compare() called too early to check prototype at > t/compare.pl line 44. > main::Compare() called too early to check prototype at > t/compare.pl line 62. > main::Compare() called too early to check prototype at > t/compare.pl line 67. > main::Compare() called too early to check prototype at > t/compare.pl line 72. > t\039XML-DOM2........ok > t\040Filter..........ok > t\041SafeEval........"my" variable $failed masks earlier > declaration in same scope at > t\041SafeEval.t line 135. > "my" variable $failed masks earlier declaration in same scope > at t\041SafeEval.t line 150. > "my" variable $failed masks earlier declaration in same scope > at t\041SafeEval.t line 163. > "my" variable $failed masks earlier declaration in same scope > at t\041SafeEval.t line 176. > Name "Foo::foo" used only once: possible typo at > t\041SafeEval.t line 108. > Name "Foo::bar" used only once: possible typo at > t\041SafeEval.t line 109. > t\041SafeEval........ok 1/23The getpwuid function is > unimplemented at t\041SafeEval.t line 14. > t\041SafeEval........dubious > Test returned status 255 (wstat 65280, 0xff00) > DIED. FAILED tests 2-23 > Failed 22/23 tests, 4.35% okay > Failed Test Stat Wstat Total Fail Failed List of Failed > -------------------------------------------------------------- > ----------------- > t\041SafeEval.t 255 65280 23 44 191.30% 2-23 > Failed 1/41 test scripts, 97.56% okay. 22/422 subtests > failed, 94.79% okay. > NMAKE : fatal error U1077: 'C:\Perl\bin\perl.exe' : return code '0xff' > Stop. > > E:\new\Log-Log4perl-0.31>C:\Perl\bin\perl.exe > "-MExtUtils::Command::MM" "-e" "test_harness(1, > 'blib\lib', 'blib\arch')" t\041SafeEval.t > t\041SafeEval....1..23 > # Running under perl version 5.006001 for MSWin32 > # Win32::BuildNumber 633 > # Current time local: Sat May 10 16:54:52 2003 > # Current time GMT: Sat May 10 23:54:52 2003 > # Using Test.pm version 1.24 > "my" variable $failed masks earlier declaration in same scope > at t\041SafeEval.t line 135. > "my" variable $failed masks earlier declaration in same scope > at t\041SafeEval.t line 150. > "my" variable $failed masks earlier declaration in same scope > at t\041SafeEval.t line 163. > "my" variable $failed masks earlier declaration in same scope > at t\041SafeEval.t line 176. > Name "Foo::foo" used only once: possible typo at > t\041SafeEval.t line 108. > Name "Foo::bar" used only once: possible typo at > t\041SafeEval.t line 109. > ok 1 > The getpwuid function is unimplemented at t\041SafeEval.t line 14. > dubious > Test returned status 255 (wstat 65280, 0xff00) > DIED. FAILED tests 2-23 > Failed 22/23 tests, 4.35% okay > Failed Test Stat Wstat Total Fail Failed List of Failed > -------------------------------------------------------------- > ----------------- > t\041SafeEval.t 255 65280 23 44 191.30% 2-23 > Failed 1/1 test scripts, 0.00% okay. 22/23 subtests failed, > 4.35% okay. > > E:\new\Log-Log4perl-0.31> > > > -- > Summary of my perl5 (revision 5 version 6 subversion 1) configuration: > Platform: > osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread > uname='' > config_args='undef' > hint=recommended, useposix=true, d_sigaction=undef > usethreads=undef use5005threads=undef useithreads=define > usemultiplicity=define > useperlio=undef d_sfio=undef uselargefiles=undef usesocks=undef > use64bitint=undef use64bitall=undef uselongdouble=undef > Compiler: > cc='cl', ccflags ='-nologo -O1 -MD -DNDEBUG -DWIN32 > -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT > -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DPERL_MSVCRT_READFIX', > optimize='-O1 -MD -DNDEBUG', > cppflags='-DWIN32' > ccversion='', gccversion='', gccosandvers='' > intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 > d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10 > ivtype='long', ivsize=4, nvtype='double', nvsize=8, > Off_t='off_t', lseeksize=4 > alignbytes=8, usemymalloc=n, prototype=define > Linker and Libraries: > ld='link', ldflags ='-nologo -nodefaultlib -release > -libpath:"C:/Perl\lib\CORE" > -machine:x86' > libpth="C:\Program Files\Microsoft Visual > Studio\VC98\mfc\lib" "C:\Program Files\Microsoft > Visual Studio\VC98\lib" "C:\Perl\lib\CORE" > libs= oldnames.lib kernel32.lib user32.lib gdi32.lib > winspool.lib comdlg32.lib advapi32.lib > shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib > wsock32.lib mpr.lib winmm.lib > version.lib odbc32.lib odbccp32.lib msvcrt.lib > perllibs= oldnames.lib kernel32.lib user32.lib gdi32.lib > winspool.lib comdlg32.lib > advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib > uuid.lib wsock32.lib mpr.lib > winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib > libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl56.lib > Dynamic Linking: > dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' ' > cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib > -release -libpath:"C:/Perl\lib\CORE" > -machine:x86' > > > Characteristics of this binary (from libperl): > Compile-time options: MULTIPLICITY USE_ITHREADS > PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS > Locally applied patches: > ActivePerl Build 633 > Built under MSWin32 > Compiled at Jun 17 2002 21:33:05 > @INC: > C:/Perl/lib > C:/Perl/site/lib > . > > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Search - Faster. Easier. Bingo. > http://search.yahoo.com > |
From: Dave R. <au...@ur...> - 2003-05-11 21:31:42
|
On Sun, 11 May 2003, Mike Schilli wrote: > seems like this is triggered by Log::Dispatch::File: > > #!/usr/bin/perl -w > use Attribute::Handlers; > use Log::Dispatch::File; > > reports this warning: > > Use of inherited AUTOLOAD for non-method Log::Dispatch::File::O_APPEND() is deprecated at /home/mschilli/PERL-5.8.0/lib/perl5/site_perl/5.8.0/Log/Dispatch/File.pm line 20. > > Do you know what this could be caused by? Yep, I just fixed this. It'll be in the next release. -dave /*======================= House Absolute Consulting www.houseabsolute.com =======================*/ |
From: Mike S. <log...@pe...> - 2003-05-11 19:08:10
|
Hi Dave, seems like this is triggered by Log::Dispatch::File: #!/usr/bin/perl -w use Attribute::Handlers; use Log::Dispatch::File; reports this warning: Use of inherited AUTOLOAD for non-method Log::Dispatch::File::O_APPEND() is deprecated at /home/mschilli/PERL-5.8.0/lib/perl5/site_perl/5.8.0/Log/Dispatch/File.pm line 20. Do you know what this could be caused by? -- Mike Mike Schilli log...@pe... http://perlmeister.com http://log4perl.sourceforge.net ---------- Forwarded message ---------- Date: Sun, 11 May 2003 12:42:52 -0600 From: David Slotnick <Dav...@sl...> To: log...@li... Subject: [log4perl-devel] Warning when using Log4perl with Attribute::Handlers I'm receiving an odd warning when using Log4perl together with Attribute::Handler. Here's the simplest program I could find that generates the warning: #!/usr/bin/perl -w use Attribute::Handlers; use Log::Log4perl; Here's my perl config: Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration: Platform: osname=linux, osvers=2.4.18-11smp, archname=i386-linux-thread-multi uname='linux daffy.perf.redhat.com 2.4.18-11smp #1 smp thu aug 15 06:41:59 edt 2002 i686 i686 i386 gnulinux ' config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 -Dmyhostname=localhost -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Dvendorprefix=/usr -Dsiteprefix=/usr -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less -isr' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemultiplicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm', optimize='-O2 -march=i386 -mcpu=i686', cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -I/usr/include/gdbm' ccversion='', gccversion='3.2 20020822 (Red Hat Linux Rawhide 3.2-5)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='gcc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lnsl -lgdbm -ldb -ldl -lm -lpthread -lc -lcrypt -lutil perllibs=-lnsl -ldl -lm -lpthread -lc -lcrypt -lutil libc=/lib/libc-2.2.92.so, so=so, useshrplib=true, libperl=libperl.so gnulibc_version='2.2.92' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE' cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT Built under linux Compiled at Sep 1 2002 23:56:49 @INC: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl ------------------------------------------------------- Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara The only event dedicated to issues related to Linux enterprise solutions www.enterpriselinuxforum.com _______________________________________________ log4perl-devel mailing list log...@li... https://lists.sourceforge.net/lists/listinfo/log4perl-devel |
From: David S. <Dav...@sl...> - 2003-05-11 18:39:38
|
I'm receiving an odd warning when using Log4perl together with Attribute::Handler. Here's the simplest program I could find that generates the warning: #!/usr/bin/perl -w use Attribute::Handlers; use Log::Log4perl; Here's my perl config: Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration: Platform: osname=linux, osvers=2.4.18-11smp, archname=i386-linux-thread-multi uname='linux daffy.perf.redhat.com 2.4.18-11smp #1 smp thu aug 15 06:41:59 edt 2002 i686 i686 i386 gnulinux ' config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 -Dmyhostname=localhost -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Dvendorprefix=/usr -Dsiteprefix=/usr -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less -isr' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemultiplicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm', optimize='-O2 -march=i386 -mcpu=i686', cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -I/usr/include/gdbm' ccversion='', gccversion='3.2 20020822 (Red Hat Linux Rawhide 3.2-5)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='gcc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lnsl -lgdbm -ldb -ldl -lm -lpthread -lc -lcrypt -lutil perllibs=-lnsl -ldl -lm -lpthread -lc -lcrypt -lutil libc=/lib/libc-2.2.92.so, so=so, useshrplib=true, libperl=libperl.so gnulibc_version='2.2.92' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE' cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT Built under linux Compiled at Sep 1 2002 23:56:49 @INC: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl |
From: Mike S. <log...@pe...> - 2003-05-11 02:58:49
|
Hey James, looks like the Perl for Win32 doesn't have getpwuid() implemented, so the test suite fails there. I've replaced getpwuid() by stat() (which is in the same Safe category), and also fixed a couple of warnings, can you please verify the test cases are ok: Index: t/041SafeEval.t =================================================================== RCS file: /cvsroot/log4perl/Log-Log4perl/t/041SafeEval.t,v retrieving revision 1.1 diff -a -u -r1.1 041SafeEval.t --- t/041SafeEval.t 6 May 2003 05:30:34 -0000 1.1 +++ t/041SafeEval.t 11 May 2003 02:41:14 -0000 @@ -11,7 +11,7 @@ ok(1); # If we made it this far, we're ok. -my $example_log = "example" . getpwuid($<) . ".log"; +my $example_log = "example" . (stat($0))[9] . ".log"; unlink($example_log); # test that unrestricted code works properly @@ -19,7 +19,7 @@ my $config = <<'END'; log4perl.logger = INFO, Main log4perl.appender.Main = Log::Dispatch::File - log4perl.appender.Main.filename = sub { "example" . getpwuid($<) . ".log" } + log4perl.appender.Main.filename = sub { "example" . (stat($0))[9] . ".log" } log4perl.appender.Main.layout = Log::Log4perl::Layout::SimpleLayout END eval { Log::Log4perl->init( \$config ) }; @@ -107,6 +107,7 @@ # Add a new name/mask to the map $Foo::foo = 1; @Foo::bar = ( 1, 2, 3 ); +push @Foo::bar, $Foo::foo; # Some nonsense to avoid 'used only once' warning Log::Log4perl::Config->vars_shared_with_safe_compartment( Foo => [ '$foo', '@bar' ] ); ok( keys %{ Log::Log4perl::Config->vars_shared_with_safe_compartment() }, $numkeys + 1, 'can add a new name/mask to the map'); @@ -132,7 +133,7 @@ Log::Log4perl::Config::allow_code('restrictive'); undef @Log::Log4perl::ALLOWED_CODE_OPS_IN_CONFIG_FILE; eval { Log::Log4perl->init( \$config ) }; -my $failed = $@ ? 1 : 0; +$failed = $@ ? 1 : 0; ok($failed, 1, 'global cspec with harmful code rejected on restrictive setting'); @@ -147,7 +148,7 @@ Log::Log4perl::Config->allow_code('restrictive'); undef @Log::Log4perl::ALLOWED_CODE_OPS_IN_CONFIG_FILE; eval { Log::Log4perl->init( \$config ) }; -my $failed = $@ ? 1 : 0; +$failed = $@ ? 1 : 0; ok($failed, 0, 'global cspec with legal code allowed on restrictive setting'); # Local cspec with illegal code @@ -160,7 +161,7 @@ Log::Log4perl::Config::allow_code('restrictive'); undef @Log::Log4perl::ALLOWED_CODE_OPS_IN_CONFIG_FILE; eval { Log::Log4perl->init( \$config ) }; -my $failed = $@ ? 1 : 0; +$failed = $@ ? 1 : 0; ok($failed, 1, 'local cspec with harmful code rejected on restrictive setting'); # Global cspec with legal code @@ -173,7 +174,7 @@ Log::Log4perl::Config::allow_code('restrictive'); undef @Log::Log4perl::ALLOWED_CODE_OPS_IN_CONFIG_FILE; eval { Log::Log4perl->init( \$config ) }; -my $failed = $@ ? 1 : 0; +$failed = $@ ? 1 : 0; ok($failed, 0, 'local cspec with legal code allowed on restrictive setting'); unlink($example_log); __END__ -- Mike Mike Schilli log...@pe... http://perlmeister.com http://log4perl.sourceforge.net ---------- Forwarded message ---------- Date: Sat, 10 May 2003 16:43:30 -0700 (PDT) From: DH <cra...@ya...> To: cpa...@pe... Cc: m...@pe... Subject: FAIL Log-Log4perl-0.31 MSWin32-x86-multi-thread 4.0 This distribution has been tested as part of the cpan-testers effort to test as many new uploads to CPAN as possible. See http://testers.cpan.org/ Please cc any replies to cpa...@pe... to keep other test volunteers informed and to prevent any duplicate effort. -- E:\new\Tie-File-0.95>perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for Tie::File E:\new\Tie-File-0.95>nmake test Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. cp lib/Tie/File.pm blib\lib\Tie/File.pm C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t\00_version.t t\01_gen.t t\02_fetchs ize.t t\03_longfetch.t t\04_splice.t t\05_size.t t\06_fixrec.t t\07_rv_splice.t t\08_ro.t t\09_gen_rs.t t\10_splice_rs.t t\11_rv_splice_rs.t t\12_longfetch_rs.t t\13_size_rs.t t\14_lock.t t\15_pushpop.t t\16_handle.t t\17_misc_meth.t t\18_rs_fixrec.t t\19_cache.t t\20_cache_full. t t\21_win32.t t\22_autochomp.t t\23_rv_ac_splice.t t\24_cache_loop.t t\25_gen_nocache.t t\26_twrite.t t\27_iwrite.t t\28_mtwrite.t t\29_dow ncopy.t t\29a_upcopy.t t\30_defer.t t\31_autodefer.t t\32_defer_misc.t t\33_defer_vs.t t\40_abs_cache.t t\41_heap.t t\42_offset.t t\00_version.........ok t\01_gen.............ok t\02_fetchsize.......ok t\03_longfetch.......ok t\04_splice..........ok 1/118 skipped: (versions through 5.7.3 dump core here.) t\05_size............ok t\06_fixrec..........FAILED tests 3-4 Failed 2/5 tests, 60.00% okay t\07_rv_splice.......ok t\08_ro..............ok t\09_gen_rs..........FAILED tests 44-47 Failed 4/58 tests, 93.10% okay t\10_splice_rs.......ok 1/101 skipped: (versions through 5.7.3 dump core here.) t\11_rv_splice_rs....ok t\12_longfetch_rs....ok t\13_size_rs.........ok t\14_lock............ok t\15_pushpop.........ok t\16_handle..........ok 1/39 skipped: (MSWin32 has broken pipe semantics) t\17_misc_meth.......ok t\18_rs_fixrec.......ok t\19_cache...........ok t\20_cache_full......ok t\21_win32...........ok t\22_autochomp.......FAILED tests 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48, 51-52, 54 Failed 19/71 tests, 73.24% okay t\23_rv_ac_splice....ok t\24_cache_loop......skipped all skipped: no reason given t\25_gen_nocache.....ok t\26_twrite..........ok t\27_iwrite..........ok t\28_mtwrite.........ok t\29_downcopy........The Unsupported function alarm function is unimplemented at t\29_downcopy.t line 276. ...propagated at t\29_downcopy.t line 287. t\29_downcopy........dubious Test returned status 22 (wstat 5632, 0x1600) DIED. FAILED tests 3-718 Failed 716/718 tests, 0.28% okay t\29a_upcopy.........The Unsupported function alarm function is unimplemented at t\29a_upcopy.t line 130. ...propagated at t\29a_upcopy.t line 140. t\29a_upcopy.........dubious Test returned status 22 (wstat 5632, 0x1600) DIED. FAILED tests 2-55 Failed 54/55 tests, 1.82% okay t\30_defer...........ok t\31_autodefer.......ok t\32_defer_misc......ok t\33_defer_vs........ok t\40_abs_cache.......ok t\41_heap............ok t\42_offset..........NOK 4# Failed test (t\42_offset.t at line 37) # got: '8' # expected: undef t\42_offset..........NOK 7# Failed test (t\42_offset.t at line 42) # got: '14' # expected: undef t\42_offset..........ok 10/24# Failed test (t\42_offset.t at line 48) # got: '23' # expected: undef # Failed test (t\42_offset.t at line 55) # got: '29' # expected: undef t\42_offset..........ok 13/24# Looks like you failed 4 tests of 24. t\42_offset..........dubious Test returned status 4 (wstat 1024, 0x400) DIED. FAILED tests 4, 7, 11, 16 Failed 4/24 tests, 83.33% okay Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t\06_fixrec.t 5 2 40.00% 3-4 t\09_gen_rs.t 58 4 6.90% 44-47 t\22_autochomp.t 71 19 26.76% 3 6 9 12 15 18 21 24 27 30 33 36 39 42 45 48 51-52 54 t\29_downcopy.t 22 5632 718 1432 199.44% 3-718 t\29a_upcopy.t 22 5632 55 108 196.36% 2-55 t\42_offset.t 4 1024 24 4 16.67% 4 7 11 16 1 test and 3 subtests skipped. Failed 6/38 test scripts, 84.21% okay. 799/4704 subtests failed, 83.01% okay. NMAKE : fatal error U1077: 'C:\Perl\bin\perl.exe' : return code '0x2' Stop. E:\new\Tie-File-0.95> E:\new\Tie-File-0.95>perl -MExtUtils::Command::MM -e"test_harness(1, 'blib\lib', 'blib\arch')" t\06_fixrec.t t\09_gen_rs.t t\22_autochomp.t t\29_downcopy.t t\29a_upcopy.t t\42_offset.t t\06_fixrec.......1..5 ok 1 ok 2 ok 3 ok 4 ok 5 ok t\09_gen_rs.......1..58 ok 1 ok 2 ok 3 ok 4 ok 5 ok 6 ok 7 ok 8 ok 9 ok 10 ok 11 ok 12 ok 13 ok 14 ok 15 ok 16 ok 17 ok 18 ok 19 ok 20 ok 21 ok 22 ok 23 ok 24 ok 25 ok 26 ok 27 ok 28 ok 29 ok 30 ok 31 ok 32 ok 33 ok 34 ok 35 ok 36 ok 37 ok 38 ok 39 ok 40 ok 41 ok 42 ok 43 not ok 44 # expected <00oops0>, got <blahblahblahrec3blah00oops0> not ok 45 # fetch expected 0, got blahblahblahrec3blah0 not ok 46 # expected <0bah0oops0>, got <blahblahblahrec3blah0bah0oops0> not ok 47 # fetch expected 0, got blahblahblahrec3blah0 ok 48 ok 49 ok 50 ok 51 ok 52 ok 53 ok 54 ok 55 ok 56 ok 57 ok 58 FAILED tests 44-47 Failed 4/58 tests, 93.10% okay t\22_autochomp....1..71 ok 1 ok 2 not ok 3 # expected <rec0\r\n>, got <rec0\r\nrec1\r\nrec2\r\n\r\n> ok 4 ok 5 not ok 6 # expected <rec0\r\nrec1\r\n>, got <rec0\r\nrec1\r\nrec2\r\n\r\n> ok 7 ok 8 not ok 9 # expected <rec0\r\nrec1\r\nrec2\r\n>, got <rec0\r\nrec1\r\nrec2\r\n\r\n> ok 10 ok 11 not ok 12 # expected <new0\r\nrec1\r\nrec2\r\n>, got <new0\r\nrec1\r\nrec2\r\n\r\n> ok 13 ok 14 not ok 15 # expected <new0\r\nnew1\r\nrec2\r\n>, got <new0\r\nnew1\r\nrec2\r\n\r\n> ok 16 ok 17 not ok 18 # expected <new0\r\nnew1\r\nnew2\r\n>, got <new0\r\nnew1\r\nnew2\r\n\r\n> ok 19 ok 20 not ok 21 # expected <long0\r\nnew1\r\nnew2\r\n>, got <long0\r\nnew1\r\nnew2\r\n\r\n> ok 22 ok 23 not ok 24 # expected <long0\r\nlong1\r\nnew2\r\n>, got <long0\r\nlong1\r\nnew2\r\n\r\n> ok 25 ok 26 not ok 27 # expected <long0\r\nlong1\r\nlong2\r\n>, got <long0\r\nlong1\r\nlong2\r\n\r\n> ok 28 ok 29 not ok 30 # expected <long0\r\nlonger1\r\nlong2\r\n>, got <long0\r\nlonger1\r\nlong2\r\n\r\n> ok 31 ok 32 not ok 33 # expected <longer0\r\nlonger1\r\nlong2\r\n>, got <longer0\r\nlonger1\r\nlong2\r\n\r\n> ok 34 ok 35 not ok 36 # expected <short0\r\nlonger1\r\nlong2\r\n>, got <short0\r\nlonger1\r\nlong2\r\n\r\n> ok 37 ok 38 not ok 39 # expected <short0\r\nshort1\r\nlong2\r\n>, got <short0\r\nshort1\r\nlong2\r\n\r\n> ok 40 ok 41 not ok 42 # expected <short0\r\nshort1\r\nshort2\r\n>, got <short0\r\nshort1\r\nshort2\r\n\r\n> ok 43 ok 44 not ok 45 # expected <short0\r\nsh1\r\nshort2\r\n>, got <short0\r\nsh1\r\nshort2\r\n\r\n> ok 46 ok 47 not ok 48 # expected <sh0\r\nsh1\r\nshort2\r\n>, got <sh0\r\nsh1\r\nshort2\r\n\r\n> ok 49 ok 50 ok 51 ok 52 ok 53 ok 54 ok 55 ok 56 ok 57 ok 58 ok 59 ok 60 ok 61 ok 62 ok 63 ok 64 ok 65 ok 66 ok 67 ok 68 ok 69 ok 70 ok 71 FAILED tests 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48 Failed 16/71 tests, 77.46% okay t\29_downcopy.....The Unsupported function alarm function is unimplemented at t\29_downcopy.t line 276. ...propagated at t\29_downcopy.t line 287. 1..718 ok 1 ok 2 dubious Test returned status 22 (wstat 5632, 0x1600) DIED. FAILED tests 3-718 Failed 716/718 tests, 0.28% okay t\29a_upcopy......The Unsupported function alarm function is unimplemented at t\29a_upcopy.t line 130. ...propagated at t\29a_upcopy.t line 140. 1..55 ok 1 dubious Test returned status 22 (wstat 5632, 0x1600) DIED. FAILED tests 2-55 Failed 54/55 tests, 1.82% okay t\42_offset.......# INC = ..\lib E:\new\Tie-File-0.95\blib\lib E:\new\Tie-File-0.95\blib\arch C:/Perl/lib C:/Perl/site/lib . C:/Perl/lib C:/ Perl/site/lib . 1..24 ok 1 - use Tie::File; ok 2 ok 3 - first one always there ok 4 - no offsets yet ok 5 - first is ok ok 6 - and second ok ok 7 - third undef ok 8 - first is ok ok 9 - and second ok ok 10 - and third ok ok 11 - fourth undef ok 12 - first is ok ok 13 - and second ok ok 14 - and third ok ok 15 - and fourth ok ok 16 - fourth undef ok 17 - first is ok ok 18 - and second ok ok 19 - and third ok ok 20 - and fourth ok ok 21 - and fifth ok ok 22 - and fifth ok ok 23 - and fourth changed ok ok 24 - and fifth ok ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t\09_gen_rs.t 58 4 6.90% 44-47 t\22_autochomp.t 71 16 22.54% 3 6 9 12 15 18 21 24 27 30 33 36 39 42 45 48 t\29_downcopy.t 22 5632 718 1432 199.44% 3-718 t\29a_upcopy.t 22 5632 55 108 196.36% 2-55 Failed 4/6 test scripts, 33.33% okay. 790/931 subtests failed, 15.15% okay. E:\new\Tie-File-0.95>scite *.PL E:\new\Tie-File-0.95>cd .. E:\new>box Log-Log4perl-0.31 Log-Log4perl-0.31/ Log-Log4perl-0.31/t/ Log-Log4perl-0.31/t/034DBI.t Log-Log4perl-0.31/t/008ConfCat.t Log-Log4perl-0.31/t/023Date.t Log-Log4perl-0.31/t/018Init.t Log-Log4perl-0.31/t/041SafeEval.t Log-Log4perl-0.31/t/026FileApp.t Log-Log4perl-0.31/t/040Filter.t Log-Log4perl-0.31/t/002Logger.t Log-Log4perl-0.31/t/deeper1.expected Log-Log4perl-0.31/t/016Export.t Log-Log4perl-0.31/t/038XML-DOM1.t Log-Log4perl-0.31/t/031NDC.t Log-Log4perl-0.31/t/030LDLevel.t Log-Log4perl-0.31/t/015fltmsg.t Log-Log4perl-0.31/t/003Layout.t Log-Log4perl-0.31/t/037JWin32Event.t Log-Log4perl-0.31/t/022Wrap.t Log-Log4perl-0.31/t/011JFile.t Log-Log4perl-0.31/t/029SysWide.t Log-Log4perl-0.31/t/testdisp.pl Log-Log4perl-0.31/t/024WarnDieCarp.t Log-Log4perl-0.31/t/039XML-DOM2.t Log-Log4perl-0.31/t/deeper7.expected Log-Log4perl-0.31/t/deeper6.expected Log-Log4perl-0.31/t/032JRollFile.t Log-Log4perl-0.31/t/014ConfErrs.t Log-Log4perl-0.31/t/005Config-Perl.t Log-Log4perl-0.31/t/012Deeper.t Log-Log4perl-0.31/t/010JConsole.t Log-Log4perl-0.31/t/017Watch.t Log-Log4perl-0.31/t/020Easy.t Log-Log4perl-0.31/t/compare.pl Log-Log4perl-0.31/t/025CustLevels.t Log-Log4perl-0.31/t/027Watch2.t Log-Log4perl-0.31/t/013Bench.t Log-Log4perl-0.31/t/019Warn.t Log-Log4perl-0.31/t/006Config-Java.t Log-Log4perl-0.31/t/033UsrCspec.t Log-Log4perl-0.31/t/009Deuce.t Log-Log4perl-0.31/t/001Level.t Log-Log4perl-0.31/t/007LogPrio.t Log-Log4perl-0.31/t/036JSyslog.t Log-Log4perl-0.31/t/021AppThres.t Log-Log4perl-0.31/t/004Config.t Log-Log4perl-0.31/t/035JDBCAppender.t Log-Log4perl-0.31/t/028Additivity.t Log-Log4perl-0.31/lib/ Log-Log4perl-0.31/lib/Log/ Log-Log4perl-0.31/lib/Log/Log4perl/ Log-Log4perl-0.31/lib/Log/Log4perl/JavaMap/ Log-Log4perl-0.31/lib/Log/Log4perl/JavaMap/ConsoleAppender.pm Log-Log4perl-0.31/lib/Log/Log4perl/JavaMap/FileAppender.pm Log-Log4perl-0.31/lib/Log/Log4perl/JavaMap/JDBCAppender.pm Log-Log4perl-0.31/lib/Log/Log4perl/JavaMap/TestBuffer.pm Log-Log4perl-0.31/lib/Log/Log4perl/JavaMap/SyslogAppender.pm Log-Log4perl-0.31/lib/Log/Log4perl/JavaMap/RollingFileAppender.pm Log-Log4perl-0.31/lib/Log/Log4perl/JavaMap/NTEventLogAppender.pm Log-Log4perl-0.31/lib/Log/Log4perl/MDC.pm Log-Log4perl-0.31/lib/Log/Log4perl/Layout.pm Log-Log4perl-0.31/lib/Log/Log4perl/Layout/ Log-Log4perl-0.31/lib/Log/Log4perl/Layout/SimpleLayout.pm Log-Log4perl-0.31/lib/Log/Log4perl/Layout/NoopLayout.pm Log-Log4perl-0.31/lib/Log/Log4perl/Layout/PatternLayout.pm Log-Log4perl-0.31/lib/Log/Log4perl/Filter.pm Log-Log4perl-0.31/lib/Log/Log4perl/Config.pm Log-Log4perl-0.31/lib/Log/Log4perl/FAQ.pm Log-Log4perl-0.31/lib/Log/Log4perl/Appender/ Log-Log4perl-0.31/lib/Log/Log4perl/Appender/DBI.pm Log-Log4perl-0.31/lib/Log/Log4perl/Appender/TestBuffer.pm Log-Log4perl-0.31/lib/Log/Log4perl/Appender/TestArrayBuffer.pm Log-Log4perl-0.31/lib/Log/Log4perl/Filter/ Log-Log4perl-0.31/lib/Log/Log4perl/Filter/LevelMatch.pm Log-Log4perl-0.31/lib/Log/Log4perl/Filter/Boolean.pm Log-Log4perl-0.31/lib/Log/Log4perl/Filter/LevelRange.pm Log-Log4perl-0.31/lib/Log/Log4perl/Filter/StringMatch.pm Log-Log4perl-0.31/lib/Log/Log4perl/JavaMap.pm Log-Log4perl-0.31/lib/Log/Log4perl/Appender.pm Log-Log4perl-0.31/lib/Log/Log4perl/DateFormat.pm Log-Log4perl-0.31/lib/Log/Log4perl/Logger.pm Log-Log4perl-0.31/lib/Log/Log4perl/Config/ Log-Log4perl-0.31/lib/Log/Log4perl/Config/Watch.pm Log-Log4perl-0.31/lib/Log/Log4perl/Config/PropertyConfigurator.pm Log-Log4perl-0.31/lib/Log/Log4perl/Config/DOMConfigurator.pm Log-Log4perl-0.31/lib/Log/Log4perl/NDC.pm Log-Log4perl-0.31/lib/Log/Log4perl/Level.pm Log-Log4perl-0.31/lib/Log/Log4perl.pm Log-Log4perl-0.31/Changes Log-Log4perl-0.31/MANIFEST Log-Log4perl-0.31/eg/ Log-Log4perl-0.31/eg/log4j-manual-3.conf Log-Log4perl-0.31/eg/log4j-file-append-perl.conf Log-Log4perl-0.31/eg/jabber.conf Log-Log4perl-0.31/eg/log4j-manual-1.conf Log-Log4perl-0.31/eg/log4j-manual-2.conf Log-Log4perl-0.31/eg/syslog.pl Log-Log4perl-0.31/eg/5005it.pl Log-Log4perl-0.31/eg/log4j-file-append-java.conf Log-Log4perl-0.31/xml/ Log-Log4perl-0.31/xml/log4j-1.2.dtd Log-Log4perl-0.31/xml/log4perl.dtd Log-Log4perl-0.31/LICENSE Log-Log4perl-0.31/README Log-Log4perl-0.31/MANIFEST.SKIP Log-Log4perl-0.31/Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for Log::Log4perl Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. cp lib/Log/Log4perl/Filter.pm blib\lib\Log/Log4perl/Filter.pm cp lib/Log/Log4perl/Filter/LevelRange.pm blib\lib\Log/Log4perl/Filter/LevelRange.pm cp lib/Log/Log4perl/JavaMap/FileAppender.pm blib\lib\Log/Log4perl/JavaMap/FileAppender.pm cp lib/Log/Log4perl/Filter/Boolean.pm blib\lib\Log/Log4perl/Filter/Boolean.pm cp lib/Log/Log4perl/Appender/DBI.pm blib\lib\Log/Log4perl/Appender/DBI.pm cp lib/Log/Log4perl/JavaMap/SyslogAppender.pm blib\lib\Log/Log4perl/JavaMap/SyslogAppender.pm cp lib/Log/Log4perl/JavaMap/RollingFileAppender.pm blib\lib\Log/Log4perl/JavaMap/RollingFileAppender.pm cp lib/Log/Log4perl/FAQ.pm blib\lib\Log/Log4perl/FAQ.pm cp lib/Log/Log4perl/MDC.pm blib\lib\Log/Log4perl/MDC.pm cp lib/Log/Log4perl.pm blib\lib\Log/Log4perl.pm cp lib/Log/Log4perl/Layout.pm blib\lib\Log/Log4perl/Layout.pm cp lib/Log/Log4perl/Filter/StringMatch.pm blib\lib\Log/Log4perl/Filter/StringMatch.pm cp lib/Log/Log4perl/Config/PropertyConfigurator.pm blib\lib\Log/Log4perl/Config/PropertyConfigurator.pm cp lib/Log/Log4perl/Config/DOMConfigurator.pm blib\lib\Log/Log4perl/Config/DOMConfigurator.pm cp lib/Log/Log4perl/NDC.pm blib\lib\Log/Log4perl/NDC.pm cp lib/Log/Log4perl/Level.pm blib\lib\Log/Log4perl/Level.pm cp lib/Log/Log4perl/Config/Watch.pm blib\lib\Log/Log4perl/Config/Watch.pm cp lib/Log/Log4perl/Layout/NoopLayout.pm blib\lib\Log/Log4perl/Layout/NoopLayout.pm cp lib/Log/Log4perl/Logger.pm blib\lib\Log/Log4perl/Logger.pm cp lib/Log/Log4perl/JavaMap/ConsoleAppender.pm blib\lib\Log/Log4perl/JavaMap/ConsoleAppender.pm cp lib/Log/Log4perl/Config.pm blib\lib\Log/Log4perl/Config.pm cp lib/Log/Log4perl/Appender/TestBuffer.pm blib\lib\Log/Log4perl/Appender/TestBuffer.pm cp lib/Log/Log4perl/Appender.pm blib\lib\Log/Log4perl/Appender.pm cp lib/Log/Log4perl/JavaMap/TestBuffer.pm blib\lib\Log/Log4perl/JavaMap/TestBuffer.pm cp lib/Log/Log4perl/Filter/LevelMatch.pm blib\lib\Log/Log4perl/Filter/LevelMatch.pm cp lib/Log/Log4perl/DateFormat.pm blib\lib\Log/Log4perl/DateFormat.pm cp lib/Log/Log4perl/JavaMap/NTEventLogAppender.pm blib\lib\Log/Log4perl/JavaMap/NTEventLogAppender.pm cp lib/Log/Log4perl/Layout/PatternLayout.pm blib\lib\Log/Log4perl/Layout/PatternLayout.pm cp lib/Log/Log4perl/JavaMap.pm blib\lib\Log/Log4perl/JavaMap.pm cp lib/Log/Log4perl/Appender/TestArrayBuffer.pm blib\lib\Log/Log4perl/Appender/TestArrayBuffer.pm cp lib/Log/Log4perl/Layout/SimpleLayout.pm blib\lib\Log/Log4perl/Layout/SimpleLayout.pm cp lib/Log/Log4perl/JavaMap/JDBCAppender.pm blib\lib\Log/Log4perl/JavaMap/JDBCAppender.pm C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t\001Level.t t\002Logger.t t\003Layou t.t t\004Config.t t\005Config-Perl.t t\006Config-Java.t t\007LogPrio.t t\008ConfCat.t t\009Deuce.t t\010JConsole.t t\011JFile.t t\012Deeper. t t\013Bench.t t\014ConfErrs.t t\015fltmsg.t t\016Export.t t\017Watch.t t\018Init.t t\019Warn.t t\020Easy.t t\021AppThres.t t\022Wrap.t t\02 3Date.t t\024WarnDieCarp.t t\025CustLevels.t t\026FileApp.t t\027Watch2.t t\028Additivity.t t\029SysWide.t t\030LDLevel.t t\031NDC.t t\032JR ollFile.t t\033UsrCspec.t t\034DBI.t t\035JDBCAppender.t t\036JSyslog.t t\037JWin32Event.t t\038XML-DOM1.t t\039XML-DOM2.t t\040Filter.t t\0 41SafeEval.t t\001Level...........ok t\002Logger..........ok t\003Layout..........ok t\004Config..........ok t\005Config-Perl.....ok t\006Config-Java.....ok t\007LogPrio.........ok t\008ConfCat.........ok t\009Deuce...........ok t\010JConsole........Possible attempt to separate words with commas at t\010JConsole.t line 9. t\010JConsole........ok t\011JFile...........Possible attempt to separate words with commas at t\011JFile.t line 6. t\011JFile...........ok t\012Deeper..........ok t\013Bench...........ok t\014ConfErrs........ok t\015fltmsg.........."my" variable $app masks earlier declaration in same scope at t\015fltmsg.t line 46. "my" variable $app masks earlier declaration in same scope at t\015fltmsg.t line 65. "my" variable $app masks earlier declaration in same scope at t\015fltmsg.t line 83. "my" variable $app masks earlier declaration in same scope at t\015fltmsg.t line 108. t\015fltmsg..........ok t\016Export..........ok t\017Watch...........ok t\018Init............ok t\019Warn............ok t\020Easy............ok t\021AppThres........ok t\022Wrap............ok t\023Date............ok t\024WarnDieCarp.....ok t\025CustLevels......ok t\026FileApp.........ok t\027Watch2..........ok t\028Additivity......ok t\029SysWide.........ok t\030LDLevel.........ok t\031NDC.............ok t\032JRollFile.......Log::Dispatch::FileRotate not installed, skipping... t\032JRollFile.......ok t\033UsrCspec........ok t\034DBI.............Use of uninitialized value in string ne at E:\new\Log-Log4perl-0.31\blib\lib/Log/Log4perl/Appender/DBI.pm line 227. t\034DBI.............ok t\035JDBCAppender....Use of uninitialized value in string ne at E:\new\Log-Log4perl-0.31\blib\lib/Log/Log4perl/Appender/DBI.pm line 227. Use of uninitialized value in string ne at E:\new\Log-Log4perl-0.31\blib\lib/Log/Log4perl/Appender/DBI.pm line 227. t\035JDBCAppender....ok t\036JSyslog.........Sys::Syslog not installed, skipping... t\036JSyslog.........ok t\037JWin32Event.....Log::Dispatch::Win32EventLog not installed, skipping.. t\037JWin32Event.....ok t\038XML-DOM1........main::Compare() called too early to check prototype at t\compare.pl line 25. main::Compare() called too early to check prototype at t\compare.pl line 32. main::Compare() called too early to check prototype at t\compare.pl line 44. main::Compare() called too early to check prototype at t\compare.pl line 62. main::Compare() called too early to check prototype at t\compare.pl line 67. main::Compare() called too early to check prototype at t\compare.pl line 72. t\038XML-DOM1........ok t\039XML-DOM2........main::Compare() called too early to check prototype at t/compare.pl line 25. main::Compare() called too early to check prototype at t/compare.pl line 32. main::Compare() called too early to check prototype at t/compare.pl line 44. main::Compare() called too early to check prototype at t/compare.pl line 62. main::Compare() called too early to check prototype at t/compare.pl line 67. main::Compare() called too early to check prototype at t/compare.pl line 72. t\039XML-DOM2........ok t\040Filter..........ok t\041SafeEval........"my" variable $failed masks earlier declaration in same scope at t\041SafeEval.t line 135. "my" variable $failed masks earlier declaration in same scope at t\041SafeEval.t line 150. "my" variable $failed masks earlier declaration in same scope at t\041SafeEval.t line 163. "my" variable $failed masks earlier declaration in same scope at t\041SafeEval.t line 176. Name "Foo::foo" used only once: possible typo at t\041SafeEval.t line 108. Name "Foo::bar" used only once: possible typo at t\041SafeEval.t line 109. t\041SafeEval........ok 1/23The getpwuid function is unimplemented at t\041SafeEval.t line 14. t\041SafeEval........dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 2-23 Failed 22/23 tests, 4.35% okay Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t\041SafeEval.t 255 65280 23 44 191.30% 2-23 Failed 1/41 test scripts, 97.56% okay. 22/422 subtests failed, 94.79% okay. NMAKE : fatal error U1077: 'C:\Perl\bin\perl.exe' : return code '0xff' Stop. E:\new\Log-Log4perl-0.31>C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(1, 'blib\lib', 'blib\arch')" t\041SafeEval.t t\041SafeEval....1..23 # Running under perl version 5.006001 for MSWin32 # Win32::BuildNumber 633 # Current time local: Sat May 10 16:54:52 2003 # Current time GMT: Sat May 10 23:54:52 2003 # Using Test.pm version 1.24 "my" variable $failed masks earlier declaration in same scope at t\041SafeEval.t line 135. "my" variable $failed masks earlier declaration in same scope at t\041SafeEval.t line 150. "my" variable $failed masks earlier declaration in same scope at t\041SafeEval.t line 163. "my" variable $failed masks earlier declaration in same scope at t\041SafeEval.t line 176. Name "Foo::foo" used only once: possible typo at t\041SafeEval.t line 108. Name "Foo::bar" used only once: possible typo at t\041SafeEval.t line 109. ok 1 The getpwuid function is unimplemented at t\041SafeEval.t line 14. dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 2-23 Failed 22/23 tests, 4.35% okay Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t\041SafeEval.t 255 65280 23 44 191.30% 2-23 Failed 1/1 test scripts, 0.00% okay. 22/23 subtests failed, 4.35% okay. E:\new\Log-Log4perl-0.31> -- Summary of my perl5 (revision 5 version 6 subversion 1) configuration: Platform: osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread uname='' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef usethreads=undef use5005threads=undef useithreads=define usemultiplicity=define useperlio=undef d_sfio=undef uselargefiles=undef usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef Compiler: cc='cl', ccflags ='-nologo -O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DPERL_MSVCRT_READFIX', optimize='-O1 -MD -DNDEBUG', cppflags='-DWIN32' ccversion='', gccversion='', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4 alignbytes=8, usemymalloc=n, prototype=define Linker and Libraries: ld='link', ldflags ='-nologo -nodefaultlib -release -libpath:"C:/Perl\lib\CORE" -machine:x86' libpth="C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib" "C:\Program Files\Microsoft Visual Studio\VC98\lib" "C:\Perl\lib\CORE" libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib perllibs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl56.lib Dynamic Linking: dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -release -libpath:"C:/Perl\lib\CORE" -machine:x86' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS Locally applied patches: ActivePerl Build 633 Built under MSWin32 Compiled at Jun 17 2002 21:33:05 @INC: C:/Perl/lib C:/Perl/site/lib . __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com |
From: <msc...@ao...> - 2003-05-09 01:02:49
|
Hi all, Log::Log4perl 0.31 is on its way to CPAN. Here's the new features: 0.31 05/08/2003 * (kg) fixed bug Appender::DBI where it was consuming the message array before other appenders could get to it * (ms) changed config_and_watch to ignore clock differences between system time and file system time (helpful with skewed NFS systems). Added Log::Log4perl::Config::Watch. * James FitzGibbon <jam...@ta...>: Added support for optionally restricting eval'd code to Safe compartments. * (ms) allow/deny code in configuration files should now be controlled via the accessor Log::Log4perl::Config->allow_code(0/1). $Log::Log4perl::ALLOW_CODE_IN_CONFIG_FILE is still supported for backwards compatibility. Have fun! -- Mike ############################ # Mike Schilli # # log...@pe... # # http://perlmeister.com # # log4perl.sourceforge.net # ############################ |
From: <msc...@ao...> - 2003-05-06 05:40:33
|
In a message dated 5/5/2003 11:15:51 AM Eastern Standard Time, Jam...@ta... writes: > lib/Log/Log4perl.pm > lib/Log/Log4perl/Config.pm > t/041SafeEval.t > > If you think it looks good, then I think this is ready to go. Perfect -- I've checked everything in and released a dev version (0.31dev) on the homepage (log4perl.sourceforge.net). If nobody complains, it's going to CPAN in a couple of days. Thanks much for the good work! -- Mike ############################ # Mike Schilli # # log...@pe... # # http://perlmeister.com # # log4perl.sourceforge.net # ############################ |
From: Ken W. <ke...@ma...> - 2003-05-05 16:23:21
|
On Saturday, May 3, 2003, at 11:22 AM, Dave Rolsky wrote: > On Sat, 3 May 2003 msc...@ao... wrote: > >> just received a message from someone not able to install >> Log::Log4perl, >> because Log::Dispatch 2.06 needs Module::Build which contains an >> error. >> >> He's using a standard SuSe distribution with perl 5.8.0, perl -V >> output >> and CPAN shell output attached to this email. > > Looks like he has CPAN set to provide the "POLLUTE=1" argument to all > modules, which is a pretty wack thing to be doing, since that's > something > the module _author_ should generally do, not the installer. > Module::Build's EU::MakeMaker compatibility code doesn't recognize that > argument, and so it dies. I'll make a patch for M::B to recognize more > old EU::MM command-line pieces. I've applied this. -Ken |
From: James.FitzGibbon <Jam...@ta...> - 2003-05-05 16:21:16
|
Looks good, with a couple of minor nits: 1. In a couple of sections of the POD, ->allowed_code_ops_convenience_map is referred to as ->allowed_code_ops: > Log::Log4perl::Config-E<gt>allowed_code_ops() accepts a convenience map > of names to opcode masks. > For convenience, if Log::Log4perl::Config-E<gt>allow_code() is called with a > value which is a key of the map previously defined with > Log::Log4perl::Config-E<gt>allowed_code_ops(), then the allowed 2. I had a thought over the weekend that the accessors for ->allowed_code_ops_convenience_map should allow for the following invocation styles: ->allowed_code_ops_convenience_map() Returns entire map as a hashref or hash per context ->allowed_code_ops_convenience_map( \% ) Replaces entire map with supplied hashref ->allowed_code_ops_convenience_map( $ ) Returns the value for the given key ->allowed_code_ops_convenience_map( $, $ ) Inserted into the map the key/val pair So that if someone wants to add a single convenience map in a wrapper function around Log4perl, they don't have to pull in the entire hash, modify it, then replace it. I've attached a patch that fixes #1, implements #2 and adds 13 more tests to t/041SafeEval.t. I also added the same type of accessors to ->vars_shared_with_safe_compartment() and changed the functions that use the globals to use the accessors to make subclassing a bit easier should anyone choose to go down that path. The patch should be applied on top of your log_log4perl_safe_patch2. It only patches these files: lib/Log/Log4perl.pm lib/Log/Log4perl/Config.pm t/041SafeEval.t If you think it looks good, then I think this is ready to go. -- j. James FitzGibbon Consultant, Ajilon Services, TTS-3D@CC-950 jam...@ta... voice/fax 612-304-6121/3277 > -----Original Message----- > From: msc...@ao... [mailto:msc...@ao...] > Sent: Saturday, May 03, 2003 12:49 AM > To: Jam...@ta...; log...@li... > Subject: Re: [log4perl-devel] For consideration: patch to use Safe > compart ments in Log::Log4per l::Config > > > In a message dated 5/2/2003 11:22:09 AM Eastern Standard > Time, Jam...@ta... writes: > > > > > Definately a good idea. Do you want me to integrate that > in, or will you? > > Done :) ... Please review the attached patch for check in. > > -- Mike > > ############################ > # Mike Schilli # > # log...@pe... # > # http://perlmeister.com # > # log4perl.sourceforge.net # > ############################ > |
From: <Msc...@ao...> - 2003-05-05 01:45:10
|
In a message dated 5/3/03 7:00:00 PM Pacific Daylight Time, au...@ur... writes: > No, it's pretty wack. That's not a good description of what POLLUTE=1 > does. And it's only necessary with a small fraction of XS modules that > haven't yet been adjusted to use ExtUtils::PPPort. Just talked to Andreas Koenig (CPAN.pm), he's gonna remove the "wack" :) message in the next version .... -- Mike Mike Schilli m...@pe... |
From: Dave R. <au...@ur...> - 2003-05-04 01:58:34
|
On Sat, 3 May 2003 msc...@ao... wrote: > Just verified that if you initialize your CPAN shell you'll get the following dialogue: > > Parameters for the 'perl Makefile.PL' command? > Typical frequently used settings: > > POLLUTE=1 increasing backwards compatibility > LIB=~/perl non-root users (please see manual for more hints) > > Your choice: [] > > So, it's not so "wack" after all :). No, it's pretty wack. That's not a good description of what POLLUTE=1 does. And it's only necessary with a small fraction of XS modules that haven't yet been adjusted to use ExtUtils::PPPort. -dave /*======================= House Absolute Consulting www.houseabsolute.com =======================*/ |
From: <msc...@ao...> - 2003-05-03 23:34:43
|
In a message dated 5/3/2003 11:22:32 AM Eastern Standard Time, au...@ur... writes: > Looks like he has CPAN set to provide the "POLLUTE=1" argument to all > modules, which is a pretty wack thing to be doing, since that's something > the module _author_ should generally do, not the installer. Just verified that if you initialize your CPAN shell you'll get the following dialogue: Parameters for the 'perl Makefile.PL' command? Typical frequently used settings: POLLUTE=1 increasing backwards compatibility LIB=~/perl non-root users (please see manual for more hints) Your choice: [] So, it's not so "wack" after all :). -- Mike ############################ # Mike Schilli # # log...@pe... # # http://perlmeister.com # # log4perl.sourceforge.net # ############################ |
From: Dave R. <au...@ur...> - 2003-05-03 16:23:45
|
On Sat, 3 May 2003 msc...@ao... wrote: > just received a message from someone not able to install Log::Log4perl, > because Log::Dispatch 2.06 needs Module::Build which contains an error. > > He's using a standard SuSe distribution with perl 5.8.0, perl -V output > and CPAN shell output attached to this email. Looks like he has CPAN set to provide the "POLLUTE=1" argument to all modules, which is a pretty wack thing to be doing, since that's something the module _author_ should generally do, not the installer. Module::Build's EU::MakeMaker compatibility code doesn't recognize that argument, and so it dies. I'll make a patch for M::B to recognize more old EU::MM command-line pieces. -dave /*======================= House Absolute Consulting www.houseabsolute.com =======================*/ |
From: <msc...@ao...> - 2003-05-03 16:12:17
|
Hey guys, just received a message from someone not able to install Log::Log4perl, because Log::Dispatch 2.06 needs Module::Build which contains an error. He's using a standard SuSe distribution with perl 5.8.0, perl -V output and CPAN shell output attached to this email. Would be great if you could take a look at it ... -- Mike ############################ # Mike Schilli # # log...@pe... # # http://perlmeister.com # # log4perl.sourceforge.net # ############################ |
From: <msc...@ao...> - 2003-05-03 05:49:02
|
In a message dated 5/2/2003 11:22:09 AM Eastern Standard Time, Jam...@ta... writes: > > Definately a good idea. Do you want me to integrate that in, or will you? Done :) ... Please review the attached patch for check in. -- Mike ############################ # Mike Schilli # # log...@pe... # # http://perlmeister.com # # log4perl.sourceforge.net # ############################ |
From: <msc...@ao...> - 2003-05-02 16:31:36
|
In a message dated 5/1/2003 11:56:46 AM Eastern Standard Time, Jam...@ta... writes: > In Log::Log4perl::Config::config_read, this code is used to determine if a > hashref > of key/value pairs has been passed to Log::Log4perl::init: > > if (ref($config) eq 'HASH') { # convert the hashref into a list > > Unfortunately, our in-house confiugration module uses tied hashes blessed > into their > own class. So this check fails and init() throws an exception because we > haven't given it a scalar reference. Tough one. I'm not entirely sure that interpreting a hash behind a blessed object is something I want to encourage. I think that once an object has been blessed, one should forget about its implementation. I'm particularily worried that if one day we want to pass a, say, URI::URL object to the method, I'll have to distinguish between interpreting it as an object or as a blessed hash which I want to interpret as key/value pairs. Could you work around the problem by having your objects provide a $obj->as_hashref method and using their result for init() ? -- Mike ############################ # Mike Schilli # # log...@pe... # # http://perlmeister.com # # log4perl.sourceforge.net # ############################ |
From: James.FitzGibbon <Jam...@ta...> - 2003-05-02 16:22:28
|
Definately a good idea. Do you want me to integrate that in, or will you? I'm not sure how my patch is applying against what is in the CVS repository, so I don't want to cause too many rejected hunks. 8-) -- j. James FitzGibbon Consultant, Ajilon Services, TTS-3D@CC-950 jam...@ta... voice/fax 612-304-6121/3277 > -----Original Message----- > From: msc...@ao... [mailto:msc...@ao...] > Sent: Friday, May 02, 2003 11:16 AM > To: Jam...@ta...; log...@li... > Subject: Re: [log4perl-devel] For consideration: patch to use Safe > compart ments in Log::Log4per l::Config > > > In a message dated 5/2/2003 8:40:45 AM Eastern Standard Time, > Jam...@ta... writes: > > > Looks good to me. I will also try to take a stab at > writing a recipe for > > the list/FAQ on how to use the new functionality. > > Great idea, please do. I just had one more thought on the > global variables: We should probably keep them, but hide > access to them behind class accessor methods like > > Log::Log4perl::Config::allowed_code_ops(@array); #Set/Gets > Log::Log4perl::Config::vars_shared_with_safe_compartment(@vars); > Log::Log4perl::Config::allowed_code_ops_convenience_map(\%map); > > This way, if we decide to change the way they work (like in > the future global for all logger repositories or local for > the current one), we're flexible. What do you think? > > -- Mike > > ############################ > # Mike Schilli # > # log...@pe... # > # http://perlmeister.com # > # log4perl.sourceforge.net # > ############################ > |
From: <msc...@ao...> - 2003-05-02 16:17:10
|
In a message dated 5/2/2003 8:40:45 AM Eastern Standard Time, Jam...@ta... writes: > Looks good to me. I will also try to take a stab at writing a recipe for > the list/FAQ on how to use the new functionality. Great idea, please do. I just had one more thought on the global variables: We should probably keep them, but hide access to them behind class accessor methods like Log::Log4perl::Config::allowed_code_ops(@array); #Set/Gets Log::Log4perl::Config::vars_shared_with_safe_compartment(@vars); Log::Log4perl::Config::allowed_code_ops_convenience_map(\%map); This way, if we decide to change the way they work (like in the future global for all logger repositories or local for the current one), we're flexible. What do you think? -- Mike ############################ # Mike Schilli # # log...@pe... # # http://perlmeister.com # # log4perl.sourceforge.net # ############################ |
From: <msc...@ao...> - 2003-05-02 16:16:55
|
In a message dated 5/2/2003 8:40:45 AM Eastern Standard Time, Jam...@ta... writes: > Looks good to me. I will also try to take a stab at writing a recipe for > the list/FAQ on how to use the new functionality. Great idea, please do. I just had one more thought on the global variables: We should probably keep them, but hide access to them behind class accessor methods like Log::Log4perl::Config::allowed_code_ops(@array); #Set/Gets Log::Log4perl::Config::vars_shared_with_safe_compartment(@vars); Log::Log4perl::Config::allowed_code_ops_convenience_map(\%map); This way, if we decide to change the way they work (like in the future global for all logger repositories or local for the current one), we're flexible. What do you think? -- Mike ############################ # Mike Schilli # # log...@pe... # # http://perlmeister.com # # log4perl.sourceforge.net # ############################ |
From: James.FitzGibbon <Jam...@ta...> - 2003-05-02 13:40:58
|
Looks good to me. I will also try to take a stab at writing a recipe for the list/FAQ on how to use the new functionality. Thanks. -- j. James FitzGibbon Consultant, Ajilon Services, TTS-3D@CC-950 jam...@ta... voice/fax 612-304-6121/3277 > -----Original Message----- > From: msc...@ao... [mailto:msc...@ao...] > Sent: Friday, May 02, 2003 12:36 AM > To: Jam...@ta...; log...@li... > Subject: Re: [log4perl-devel] For consideration: patch to use Safe > compartments in Log::Log4per l::Config > > > In a message dated 5/1/2003 7:06:44 PM Eastern Standard Time, > Jam...@ta... writes: > > > > > Attached is a patch that implements the change I describe > in my message to > > Mike > > Schilli earlier today. > > Wonderful, thanks! > > > - the use of a Safe compartment is not enforced for the > user-defined cspecs > > I've changed that. Please verfiy the attached modified patch > (it's against the current CVS version). > > > The amount of information in > > the > > package globals really makes me feel like this information > needs to go > > somewhere > > else, but I don't know where. I'm open to suggestions. > > Ideally, I think we should get rid of the globals (although > we might need to provide backwards-compatibility for the one > we have) and add the code restriction control via methods of > the currently active Log4perl instance out of the Log4perl > repository. Right now, we don't have a repository -- so the > globals are ok. Backward comp issues remain of course. > > > - The POD explaining how the Safe compartment restrictions > work is in > > Log/Log4perl.pm > > right now, and is a bit verbose. > > I think it's great! > > Please check the attached patch and let me know if you want > it in like that. > > -- Mike > > ############################ > # Mike Schilli # > # log...@pe... # > # http://perlmeister.com # > # log4perl.sourceforge.net # > ############################ > |
From: <msc...@ao...> - 2003-05-02 05:36:25
|
In a message dated 5/1/2003 7:06:44 PM Eastern Standard Time, Jam...@ta... writes: > > Attached is a patch that implements the change I describe in my message to > Mike > Schilli earlier today. Wonderful, thanks! > - the use of a Safe compartment is not enforced for the user-defined cspecs I've changed that. Please verfiy the attached modified patch (it's against the current CVS version). > The amount of information in > the > package globals really makes me feel like this information needs to go > somewhere > else, but I don't know where. I'm open to suggestions. Ideally, I think we should get rid of the globals (although we might need to provide backwards-compatibility for the one we have) and add the code restriction control via methods of the currently active Log4perl instance out of the Log4perl repository. Right now, we don't have a repository -- so the globals are ok. Backward comp issues remain of course. > - The POD explaining how the Safe compartment restrictions work is in > Log/Log4perl.pm > right now, and is a bit verbose. I think it's great! Please check the attached patch and let me know if you want it in like that. -- Mike ############################ # Mike Schilli # # log...@pe... # # http://perlmeister.com # # log4perl.sourceforge.net # ############################ |
From: James.FitzGibbon <Jam...@ta...> - 2003-05-02 00:07:02
|
Attached is a patch that implements the change I describe in my message to Mike Schilli earlier today. The patch includes code changes, new POD and six new test cases. The issues that I still have to address after getting some peer feedback: - the use of a Safe compartment is not enforced for the user-defined cspecs in Log::Log4perl::Layout::PatternLayout (though the POD changes suggest that they are). I do intend to bring the Safe compartment to PatternLayout, but I notice that the existing code has it's own eval statement rather than borrowing from Log::Log4perl::Config::compile_if_perl(). Rather than re-implement the changes I made to compile_if_perl() in PatternLayout.pm, I wanted to check if there is any reason why they couldn't both use the same routine. - My original message suggested that there would only be a single new variable, but in implementing it I found that I actually needed three extra. This makes it look a bit ugly. It's the exporting of symbols from other packages into the compartment that is the biggest eyesore IMHO. The amount of information in the package globals really makes me feel like this information needs to go somewhere else, but I don't know where. I'm open to suggestions. - The POD explaining how the Safe compartment restrictions work is in Log/Log4perl.pm right now, and is a bit verbose. A quicker intro could be made for this module and the detailed verbage moved to Log/Log4perl/Config.pm instead. Please review and let me know what needs touching up before this could become part of the regular Log::Log4perl distribution. Thanks. -- j. James FitzGibbon Consultant, Ajilon Services, TTS-3D@CC-950 jam...@ta... voice/fax 612-304-6121/3277 -----Original Message----- From: James.FitzGibbon Sent: Thursday, May 01, 2003 10:48 AM To: 'm...@pe...' Subject: Open to use of Safe in Log::Log4perl::Config? Hi there. I'm playing with Log4perl for the first time, and while I'm very impressed with the feature set, the ability to execute completely arbitrary code worries me. I have a need to execute a limited number of Perl ops, but I don't want people using destructive operators. Would you be open to a patch to Log::Log4perl::Config that uses the Safe Module to restrict the operations that can be performed within compile_if_perl()? I'm envisioning something like this in a program: $Log::Log4perl::ALLOWED_CODE_OPS_IN_CONFIG_FILE = ':browse'; Log::Log4perl->init( { log.log4perl.logger => 'ERROR, Main', log.log4perl.appender.Main = Log::Dispatch::File, log.log4perl.appender.Main.filename = sub { "$ENV{LOGNAME}.log" }, } ); Which would pass, but: Log::Log4perl->init( { log.log4perl.logger => 'ERROR, Main', log.log4perl.appender.Main = Log::Dispatch::File, log.log4perl.appender.Main.filename = sub { system("rm -rf /" ) }, } ); Would throw an error like "operation 'system' trapped by mask ':browse'". For compatibility, having $Log::Log4perl::ALLOW_CODE_IN_CONFIG_FILE set to '1' would not enforce any restrictions. For ease of setup without people having to know how Safe works, I was thinking that if $Log::Log4perl::ALLOW_CODE_IN_CONFIG_FILE was set to 'safe' then it would be mapped to ':browse', which would allow for most read operations, including things like 'gethostbyname'. This mapping could be extended so that there could be other things like 'restricted' that just equaled ':default'. Your thoughts? Thanks. -- j. James FitzGibbon Consultant, Ajilon Services, TTS-3D@CC-950 jam...@ta... voice/fax 612-304-6121/3277 |
From: James.FitzGibbon <Jam...@ta...> - 2003-05-01 16:59:31
|
In Log::Log4perl::Config::config_read, this code is used to determine if a hashref of key/value pairs has been passed to Log::Log4perl::init: if (ref($config) eq 'HASH') { # convert the hashref into a list Unfortunately, our in-house confiugration module uses tied hashes blessed into their own class. So this check fails and init() throws an exception because we haven't given it a scalar reference. I would suggest changing this to: if( UNIVERSAL::isa($config, 'HASH') ) { This technique should work as long as the underlying data structure being passed in is a hash, and should be backwards compatible a ways back. If compatibility isn't as much of a concern, the 'reftype' function works nicely too, but that is only in the attributes pragma in 5.6.1 and Scalar::Util in 5.8.0. Thanks. -- j. James FitzGibbon Consultant, Ajilon Services, TTS-3D@CC-950 jam...@ta... voice/fax 612-304-6121/3277 |
From: Mike S. <msc...@ao...> - 2003-04-23 18:01:24
|
jc...@di... wrote: > I'll work one up. I wanted to grab Log::Log4perl::AutoCategorize (or > similar) > for my namespace, and get the (alias => Logger) import working. For > this, I need > your endorsement (ie, I cant take what you dont want to give). Excellent. Once you've got something like a beta, we can reconvene and decide. -- -- Mike Mike Schilli m...@pe... |