Le 09/03/2011 17:35, Nicolas Wormser a écrit :
It might look like a pure noob question but I can't manage to set personnal messages into my dev.log from a controller (or whatever).

I tried things like $this->logger->info("message"); in a controller to no avail… Also tried to include the logger interface namespace with no results…

Any help would be much appreciated.

Nicolas
The logger is available in the DIC as the "logger" service. So in your controller it will be $this->get('logger')->info(...)

Regards

--
Christophe | Stof

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to