Rotate log in mod_perl

--000e0cd5f6fae41ded047234c4b0
Content-Type: text/plain; charset=ISO-8859-1

My httpd.conf has following

<Perl>
$ErrorLog = " |bin/rotatelogs
$config->{log_file}.%Y-%m-%d-%H_%M_%S 5M";
#$TransferLog = " |bin/rotatelogs
$config->{log_accessfile}.%Y-%m-%d-%H_%M_%S 5M";
</Perl>

But server start fails

$parms->add_config() has failed: ErrorLog takes one argument, The filename
of the error log at
/src/linux/lib/perl5/site_perl/5.8.8/i686-linux-64int/Apache 2/PerlSections.pm
line 215.\n

Where $config->{log_file} is automated file name based on my server name

Any idea how can I get rid of it

--Shibi Ns--

--000e0cd5f6fae41ded047234c4b0
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

My httpd.conf has following <br><br>=A0=A0=A0 <Perl><br>=A0=A0=A0 $Er=
rorLog=A0=A0=A0=A0=A0=A0 =3D " |bin/rotatelogs $config->{log_file}.=
%Y-%m-%d-%H_%M_%S 5M";<br>=A0=A0=A0 #$TransferLog=A0=A0=A0 =3D " =
|bin/rotatelogs $config->{log_accessfile}.%Y-%m-%d-%H_%M_%S 5M";<br=
>
=A0=A0=A0 </Perl><br><br clear=3D"all">But server start fails <br><br=
>=A0$parms->add_config() has failed: ErrorLog takes one argument, The fi=
lename of the error log at=A0 /src/linux/lib/perl5/site_perl/5.8.8/i686-lin=
ux-64int/Apache2/PerlSections.pm line 215.\n<br>
<br>Where $config->{log_file} is automated file name based on my server =
name <br><br>Any idea how can I get rid of it<br>=A0<br>--Shibi Ns--<br>

--000e0cd5f6fae41ded047234c4b0--
Shibi NS [ Fr, 28 August 2009 16:47 ] [ ID #2013922 ]

Re: Rotate log in mod_perl

Shibi NS wrote:
> My httpd.conf has following
>
> <Perl>
> $ErrorLog = " |bin/rotatelogs
> $config->{log_file}.%Y-%m-%d-%H_%M_%S 5M";
> #$TransferLog = " |bin/rotatelogs
> $config->{log_accessfile}.%Y-%m-%d-%H_%M_%S 5M";
> </Perl>
>
> But server start fails
>
> $parms->add_config() has failed: ErrorLog takes one argument, The
> filename of the error log at
> /src/linux/lib/perl5/site_perl/5.8.8/i686-linux-64int/Apache 2/PerlSections.pm
> line 215.\n
>

I'm pretty sure you just need to embed some quotes in that string.

$ErrorLog =
qq["|bin/rotatelogs $config->{log_file}.%Y-%m-%d-%H_%M_%S 5M"];

or something along those lines anyway.

Adam
Adam Prime [ Sa, 29 August 2009 02:18 ] [ ID #2014036 ]

Re: Rotate log in mod_perl

--000e0cd5f2667a851c047269c24b
Content-Type: text/plain; charset=ISO-8859-1

I have tied this but no luck .

Shibi

On Sat, Aug 29, 2009 at 5:48 AM, Adam Prime <adam.prime [at] utoronto.ca> wrote:

> Shibi NS wrote:
>
>> My httpd.conf has following
>>
>> <Perl>
>> $ErrorLog = " |bin/rotatelogs
>> $config->{log_file}.%Y-%m-%d-%H_%M_%S 5M";
>> #$TransferLog = " |bin/rotatelogs
>> $config->{log_accessfile}.%Y-%m-%d-%H_%M_%S 5M";
>> </Perl>
>>
>> But server start fails
>>
>> $parms->add_config() has failed: ErrorLog takes one argument, The
>> filename of the error log at
>> /src/linux/lib/perl5/site_perl/5.8.8/i686-linux-64int/Apache 2/PerlSections.pm
>> line 215.\n
>>
>>
> I'm pretty sure you just need to embed some quotes in that string.
>
> $ErrorLog =
> qq["|bin/rotatelogs $config->{log_file}.%Y-%m-%d-%H_%M_%S 5M"];
>
> or something along those lines anyway.
>
> Adam
>



--
--Shibi Ns--

--000e0cd5f2667a851c047269c24b
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I have tied this but no luck .<br><br>Shibi<br><br><div class=3D"gmail_quot=
e">On Sat, Aug 29, 2009 at 5:48 AM, Adam Prime <span dir=3D"ltr"><<a hre=
f=3D"mailto:adam.prime [at] utoronto.ca">adam.prime [at] utoronto.ca</a>></span> w=
rote:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class=3D"im"=
>Shibi NS wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
My httpd.conf has following<br>
<br>
=A0 =A0<Perl><br>
=A0 =A0$ErrorLog =A0 =A0 =A0 =3D " |bin/rotatelogs $config->{log_f=
ile}.%Y-%m-%d-%H_%M_%S 5M";<br>
=A0 =A0#$TransferLog =A0 =A0=3D " |bin/rotatelogs $config->{log_ac=
cessfile}.%Y-%m-%d-%H_%M_%S 5M";<br>
=A0 =A0</Perl><br>
<br>
But server start fails<br>
<br>
=A0$parms->add_config() has failed: ErrorLog takes one argument, The fil=
ename of the error log at =A0/src/linux/lib/perl5/site_perl/5.8.8/i686-linu=
x-64int/Apache2/PerlSections.pm line 215.\n<br>
<br>
</blockquote>
<br></div>
I'm pretty sure you just need to embed some quotes in that string.<br>
<br>
$ErrorLog =3D<br>
=A0 qq["|bin/rotatelogs $config->{log_file}.%Y-%m-%d-%H_%M_%S 5M&q=
uot;];<br>
<br>
or something along those lines anyway.<br><font color=3D"#888888">
<br>
Adam<br>
</font></blockquote></div><br><br clear=3D"all"><br>-- <br>--Shibi Ns--<br>

--000e0cd5f2667a851c047269c24b--
Shibi NS [ Mo, 31 August 2009 08:01 ] [ ID #2014180 ]
Webserver » gmane.comp.apache.mod-perl » Rotate log in mod_perl

Vorheriges Thema: changing apache process name?
Nächstes Thema: News regarding mod_perl returning empty pages