Logging

Paulo Jorge Dias <[email protected]> Tue, 13 Apr 2010 09:25:44 +0100
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
Hi all,

I have a fastcgi based service with Apache 2.2 with the configuration
bellow.

I am facing logging problems because all 50 processes write to the same file
(error_log) and the messages are mixed.

Is there any configuration in order to have one log file per each fast-cgi
process?

Httpd.conf

ErrorLog "logs/error_log"
LoadModule fastcgi_module modules/mod_fastcgi.so
<IfModule mod_fastcgi.c>
    Alias /fcgi-bin/ /app/onlinec/applon/exe/
    <Directory /app/onlinec/applon/exe>
      AllowOverride None
      Allow from all
    </Directory>
    #
    # Start a "static" server at httpd initialization inside the scope of
the SetHandler
    #
    FastCgiServer /app/onlinec/applon/exe/elag -processes 50 -idle-timeout
180 -restart-delay 5 -initial-env LD_PRELOAD=/usr/lib/[email protected] -initial-env
NLS
_LANG=AMERICAN_AMERICA.WE8ISO8859P1 -initial-env
LD_LIBRARY_PATH=/usr/openwin/lib:/app/fcgi/lib:/app/oracle/instclient
-initial-env DBCONNECT=XXXXX/XXXXX@XXXXX:####/XXXXX -initial-env
ENVFILE=/app/onlinec/resources/config/applon.env
    #
    LogFormat "%P %t %>s %T %a %B \"%r\"" common
    CustomLog logs/access_log common
</IfModule>

Best regards,

--
Paulo Jorge Dias

_______________________________________________
FastCGI-developers mailing list
FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org
http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers