httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shibi NS <shibi...@gmail.com>
Subject Re: [users@httpd] Information missing with piped Log setting for ErrorLog
Date Mon, 23 Nov 2009 04:24:08 GMT
Sorry ,I made the mistake while writing this mail only

Here is the corrected info

Error log setting without piped logging feature

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
common
CustomLog  '/logs/access_log';
ErrorLog      ' /logs/error_log';

Error log setting with piped logging feature

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
common
CustomLog '| rotatelogs /logs/access_log.%y%m%d 1M  common';
ErrorLog      '| rotatelogs /logs/error_log.%y%m%d 1M';


Shibi Ns

On Mon, Nov 23, 2009 at 3:54 AM, André Warnier <aw@ice-sa.com> wrote:

> Shibi NS wrote:
>
>> Hello All,
>>
>> Error log setting without piped logging feature
>>
>> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
>> common
>> CustomLog '| rotatelogs \logs\access_log.%y%m%d 1M  common';
>> ErrorLog      '| rotatelogs \logs\error_log.%y%m%d 1M  ';
>>
>> Error log setting with piped logging feature
>>
>> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
>> common
>> CustomLog '\logs\access_log.%y%m%d';
>> ErrorLog      ' \logs\error_log.%y%m%d';
>>
>>  I believe you mixed things up a bit above.
> 1) the first settings look like a piped log, and vice-versa.
> 2) The "common" at the end of TransferLog will be ignored.
> Read this again :
> http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#transferlog
> (and the preceding LogFormat, and also the CustomLog directive)
>
> Also check the note in CustomLog about file paths :
>
> When entering a file path on non-Unix platforms, care should be taken to
> make sure that only forward slashed are used even though the platform may
> allow the use of back slashes. In general it is a good idea to always use
> forward slashes throughout the configuration files.
>
>
> I suggest you correct all the above first, then test again, and get back
> here if you still have a problem.
>
>
> ---------------------------------------------------------------------
> 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
>
>


-- 
--Shibi Ns--

Mime
View raw message