httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ricardo figueiredo <ricardoogra...@gmail.com>
Subject Re: [users@httpd] mod_log_config
Date Fri, 12 Jun 2009 19:38:50 GMT
Hi

CustomLog "logs/default_log|/usr/local/apache2/program" common
Excuse my stupidity. Now, I understood.

How do I compile mod_log_config ? I modified a parameter.

Thank you
Ricardo



On Fri, Jun 12, 2009 at 4:17 PM, ricardo figueiredo <
ricardoogrande@gmail.com> wrote:

> Hi,
>
> When I configured only file apache works.
> CustomLog logs/default_log common
>
> Now, I configured:
> CustomLog "logs/default_log|/usr/local/apache2/program" common
> and Apache doesn't work.
>
> Thank you
> Ricardo
>
>
> On Fri, Jun 12, 2009 at 4:09 PM, Eric Covener <covener@gmail.com> wrote:
>
>> On Fri, Jun 12, 2009 at 3:02 PM, ricardo13<ricardoogrande@gmail.com>
>> wrote:
>> >
>> > Hi,
>> >
>> > I'm testing the mod_log_config.
>> >
>> > I did a simple program to read stardard input. Called program.c
>> >
>> > #include <stdio.h>
>> > int main() {
>> >    char input[BUFSIZ];
>> >
>> >    while(fgets(input, BUFSIZ, stdin) != NULL)
>> >       printf("Value: %s\n", input);
>> >    return 0;
>> > }
>> >
>> > I configured httpd.conf to send information log to this program.
>> >
>> > LogFormat "%D" common
>> > CustomLog "|/usr/local/apache2/program" common
>> >
>> > But When I request a page doesn't show "Value: 1234" in the prompt, for
>> > example.
>> > What's wrong ?? Anyone has a example ??
>>
>> Where does standard out from a piped logger go?  Try writing to a file.
>>
>> --
>> Eric Covener
>> covener@gmail.com
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>
>
> --
> Muito Obrigado
>
> Ricardo
>



-- 
Muito Obrigado

Ricardo

Mime
View raw message