From: Jim C. <jc...@di...> - 2003-10-17 05:14:50
|
Mike Schilli wrote: > King, James X -ND wrote on 10/16/2003, 6:24 PM: > >> Excellent product. It has taken me months to build a logger similar >> to this. I would like to convert, however does log4perl support a >> Solaris 5.6 environment running a 5.005.03 version of Perl? >> > Thanks! We're actively supporting 5.005_03 and Solaris. Give it a try > and run the huge test suite that comes with it! > as of 0.37, there is a use 5.006 clause, and there are a lot of uses of 'our' variables, which IIRC is a 5.6 feature. [jimc@harpo jimc]$ perldoc -m Log::Log4perl |grep -n use 5:use 5.006; that said, Mike is certainly 'qualified' to current development efforts ;-), and 0.38 may have already been released (I havent watched closely lately) you might just try to comment out the use 5.006 and the use strict, and see what happens. Id have given a perl -pi.bak -e one-liner, but multiline declarations would defeat the line-at-a-time operation of -p in this context. our %ALLOWED_CODE_OPS = ( 'safe' => [ ':browse' ], 'restrictive' => [ ':default' ], ); FYI, since youre looking to convert an existing code-base to use this shiny new module, you should look into wrapping it in an adaptor class. Log4perl has support for it, its really simple to use, I did so in <shameless plug> Log::Log4perl::AutoCategorize, now on CPAN. My module uses features from 5.8.0, so its not directly useful for your needs. # set this to '1' if you're using a wrapper # around Log::Log4perl our $caller_depth = 0; (all code-quotes are from same file, as on prompt above) |