Feb 5, 2004 10:16
20 yrs ago
English term

We feed it the error

English Tech/Engineering Programming in Pel
The best way to write to Apache's error_log is to use the Apache object log_error method. We feed it the error according to Template::Config.

Discussion

Alaa Zeineldine Feb 5, 2004:
To Richard: It's not in O'Reilly's Programming Perl. These objects are not part of Perl Proper. But you're right that this more of a programming question than a [natural] language one.
Richard Benham Feb 5, 2004:
Surely that�s �Programming in Perl�?

Responses

+5
5 mins
Selected

We enter the error into Apache's error_log

What they mean here, quite simply, is that the error is entered into the Apache error_log. Feed here is a synynoym of enter.
Peer comment(s):

agree Charlie Bavington : or indeed a synonym of "write to" as in the first sentence :-)
41 mins
Yes, I guess that's also possible. Thanks Charlie.
agree Rajan Chopra
1 hr
Thanks langclinic.
agree RHELLER
4 hrs
Thanks Rita.
agree hookmv
6 hrs
Thanks Veronica.
agree Laurel Porter (X) : Please don't feed the Apaches...
10 hrs
Thanks Laurel.
Something went wrong...
4 KudoZ points awarded for this answer. Comment: "Thank you!"
+1
2 hrs

The error is passed to Apache's log_error object.

In object-oriented programming, an object contains both the data and the methods for accessing that data. Any one writing to, reading from, or otherwise accessing that object, should do this through the object methods. This way the user of the object is shielded from the internal implementation of the object and from changes that my occur to it.

What the phrase implies is that that Apache's error_log is part of an Apache object also called error_log, which must contain methods for writing to and modifying the log. A properly written program should not attempt to access the error_log file directly, but instead should pass the data (an error message in this case) to Apache's own error_log object, which will do the work for it.

--------------------------------------------------
Note added at 13 hrs 26 mins (2004-02-05 23:43:25 GMT)
--------------------------------------------------

The reference to template::config means that this method will be used to invoke (trying to put in non-tech terms) the Apache object error_log. Here is a snippet from the method\'s in the CPAN documentation:

http://search.cpan.org/~abw/Template-Toolkit-2.13/lib/Templa...

SYNOPSIS
use Template::Config;
DESCRIPTION
This module implements various methods for loading and instantiating other modules that comprise the Template Toolkit. It provides a consistent way to create toolkit components and allows custom modules to be used in place of the regular ones.



--------------------------------------------------
Note added at 13 hrs 33 mins (2004-02-05 23:50:46 GMT)
--------------------------------------------------

In summary, the steps are:

- You are running the Apache web server
- Some server error occurs, the server code that handles the error is written in Perl with CPAN packages
- The program calls template::config to create the context for Apache\'s error_log object (probably initial values, environment values, customized call interface, etc.)
- Using template::config, the program then loads the error_log object and passes to it the error data.
- The error_log object uses its internal methods (OO term for functions/subroutines) to write the error to the error_log file.

As I said above, this is really a programming language not a natural language question.

--------------------------------------------------
Note added at 19 hrs 13 mins (2004-02-06 05:30:41 GMT)
--------------------------------------------------

Sorry for the typos:
trying to put *it* in non-tech terms
the method\'s *description* int CPAN documentation
Peer comment(s):

agree Jörgen Slet
10 hrs
Something went wrong...
Term search
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search