| How to use Logger ? [message #30433] |
Thu, 28 June 2007 10:13  |
wace Messages: 19 Registered: May 2007 Location: Grenoble |
Junior Member |
|
|
Hi all,
I'm new on Symfony, and i'm not able to find how use a Logger object to trace code execution in my Action class or Template file,
Do you help by code examples and requirement to config a logger object ?
thx,
|
|
|
|
|
|
|
|
| Re: How to use Logger ? [message #30453 is a reply to message #30433 ] |
Thu, 28 June 2007 15:41   |
halfer Messages: 8440 Registered: January 2006 Location: West Midlands, UK |
Faithful Member |
|
|
al_n, I can't quite tell if you're trying to be rude, but it sounds like it. Surely you can manage a more diplomatic tone than that?
MVC, as I am sure you know, is about the separation of concerns between logic and presentation. I regard application logging as logic that firmly does not belong in the presentation layer, so I would still maintain that my comment was correct. Debugging logging, on the other hand, can go anywhere, which is perhaps what you had in mind.
[Edit: unsubscribing from thread]
[Updated on: Thu, 28 June 2007 15:42] Remember Gaza | Connect 2 Theatre
|
|
|
| Re: How to use Logger ? [message #30477 is a reply to message #30453 ] |
Fri, 29 June 2007 00:07  |
 |
al_n Messages: 321 Registered: May 2006 Location: The Netherlands |
Faithful Member |
|
|
| halfer wrote on Thu, 28 June 2007 15:41 | al_n, I can't quite tell if you're trying to be rude, but it sounds like it. Surely you can manage a more diplomatic tone than that?
MVC, as I am sure you know, is about the separation of concerns between logic and presentation. I regard application logging as logic that firmly does not belong in the presentation layer, so I would still maintain that my comment was correct. Debugging logging, on the other hand, can go anywhere, which is perhaps what you had in mind.
[Edit: unsubscribing from thread]
|
My dear halfer,
I didn't intend to be rude but when people are asking about logging in order to trace code execution then I assume they are trying to debug something. You can surely understand that debugging is also something you are doing in your presentation layer. More then that, logging is not logic, its just .... logging and it is not breaking the definition of the MVC design pattern if it happens in the view.
|
|
|