Apache Mod-Python - Work started: (MODPYTHON-196) Add req.server.log_error() and

This is Interesting: Free IT Magazines  
Home > Archive > Apache Mod-Python > October 2006 > Work started: (MODPYTHON-196) Add req.server.log_error() and





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Work started: (MODPYTHON-196) Add req.server.log_error() and
Graham Dumpleton (JIRA)

2006-10-23, 7:12 pm

[ http://issues.apache.org/jira/brows...ON-196?page=all ]

Work on MODPYTHON-196 started by Graham Dumpleton.

> Add req.server.log_error() and req.connection.log_error().
> ----------------------------------------------------------
>
> Key: MODPYTHON-196
> URL: http://issues.apache.org/jira/browse/MODPYTHON-196
> Project: mod_python
> Issue Type: New Feature
> Components: core
> Reporter: Graham Dumpleton
> Assigned To: Graham Dumpleton
> Fix For: 3.3
>
>
> In mod_python you can currently log to the Apache error log file using:
> apache.log_error() - This is a wrapper around ap_log_error(). By default it logs against the main Apache server. You can supply an alternate server object against which to log. Which server object is used is important where you have different logs files

for different virtual servers.
> req.log_error() - This is a wrapper around ap_log_rerror(). This logs against the virtual server the request is being handled within. The output also includes details about the client from which the request originated.
> For completeness, should add:
> req.server.log_error() - Also a wrapper around ap_log_error(). Would always log to the server which the method is called against.
> req.connection.log_error() - This would be a wrapper around ap_log_cerror(). Would log against the virtual server the request is being handled within. Because it is associated with a particular client, the details of the client can again be recorded in

the logged message.
> Note that ap_log_cerror() was only introduced during Apache 2.0.55. As a result, if an older version of Apache is used than that, instead of using ap_log_cerror(), it would use ap_log_error() and use req.connection.base_server as the server to log again

st. In doing this, the client information wouldn't be displayed though.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com