Re: MidgardConfig comments (Was: [midgard-dev] Automake and directories)
"Piotras" <pp-VVDi8QVAvoBWk0Htik3J/[email protected]> Sun, 19 Feb 2006 19:55:38 +0100 (CET)
| Newsgroups | gmane.comp.web.midgard.devel |
|---|---|
| Message-ID | <[email protected]> |
> Hi, Hi, > My suggestion would be to pass just a generic configuration "name" as > an argument and let the implementation decide the location and name of > the corresponding configuration file. A possible Windows port might > well want to use a different directory layout and naming convention. OK. Should we additionally check for existing possible extension in name? >> ok , just tell me how can I know using three log files that this query is executed >> before this php function and after this apache call? > > In fact the situation at the moment is that you have three different > log files: the Apache error log, the Midgard log, and the MidCOM log. > It's possible to have them all pointing to the same place but > currently that needs special attention. It would be better if all the > logs would go to the Apache log and follow the Apache LogLevel by > default, but you could still point the logs elsewhere if you really > wanted to. Yes, I can not focus on log files only now. midgard-php and midgard-core use the same file. How do you find Apache log error used in both apache&php and php-cli environments? Your proposal for g_log2ap wrapper is very good, but far from being usefull on php level. For such environment I need some core's log handler. Either initilized or supported by core. > To illustrate my point I found your own comment (carelessly taken out > of context :-) from December: "Typical midcom log file is empty and I > have no idea how to define new log file or even log level." (See > http://permalink.gmane.org/gmane.comp.web.midgard.devel/6345) Yes, and I know how I wrote that. My perfect midgard log file should log everything from midcom to core. That should be quite easy to write g_log like function for midgard-php. The question is if it could be implemented something else than only in midgard-php. I understand your point of view but I can not count how many times I asked users about setting 3~4 different log files. Piotras