|
From: Mike S. <m...@pe...> - 2009-03-20 16:47:57
|
On Fri, 20 Mar 2009, fo...@ne... wrote:
> - log4perl 1.10-1 (Ubuntu)
There's been a lot of changes to the Synchronized appender between
Log4perl 1.10 (released two years ago) and the current Log4perl 1.21 --
can you try the latest?
-- Mike
Mike Schilli
m...@pe...
>
> Configuration:
> Apache:
> PerlRequire /apache/startup.pl
> PerlWarn On
> PerlTaintCheck On
>
> Alias /action/ /apache/action/
> <Location /action/>
> SetHandler perl-script
> PerlResponseHandler ModPerl::Registry
> PerlOptions +ParseHeaders
> Options +ExecCGI
> Order allow,deny
> Allow from all
> </Location>
>
>
> Log4Perl:
> ...
> my $conf = qq(
> log4perl.category = $threshold, Syncer
>
> # File appender (unsynchronized)
> log4perl.appender.Logfile = Log::Log4perl::Appender::File
> log4perl.appender.Logfile.autoflush = 1
> log4perl.appender.Logfile.filename = $filename
> log4perl.appender.Logfile.mode = append
> log4perl.appender.Logfile.layout = Log::Log4perl::Layout::PatternLayout
> log4perl.appender.Logfile.layout.ConversionPattern = %d{dd/MMM/yyyy:HH:mm:ss} %p %m%n
>
> # Synchronizing appender, using the file appender above
> log4perl.appender.Syncer = Log::Log4perl::Appender::Synchronized
> log4perl.appender.Syncer.appender = Logfile
> log4perl.appender.Syncer.destroy = 1
> );
>
> Log::Log4perl::init( \$conf );
> my $logger = Log::Log4perl::get_logger();
> ...
>
>
> The threshold is set to INFO meaning that every call results in a single
> log entry being made. The script runs for about one second.
>
> When I tried out running the script as a handler (instead of the registry method), this did not
> change the behaviour.
>
> I understand that there are performance limits and eventually failures,
> but is not that a bit early, with only ten concurrent usersr?
>
> So I guess I have a misconfigured setup. Could anybody give me a good
> hint? I googled for my error, but without luck.
>
> Regs,
>
> Christian Folini
>
>
> --
> I myself am human and free only to the extent that I acknowledge the
> humanity and liberty of all my fellows...
> --- Mikhail Bakunin
>
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> log4perl-devel mailing list
> log...@li...
> https://lists.sourceforge.net/lists/listinfo/log4perl-devel
>
|