This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal

eZ Community » Forums » eZ Publish 5 Platform » Legacy logs in the Symfony 2...

Legacy logs in the Symfony 2 profiler: I can haz it

Legacy logs in the Symfony 2 profiler: I can haz it

Saturday 25 January 2014 2:59:40 pm

Since I was working on merging a pull request from @dspe, that adds the list of templates (legacy & twig) to the Symfony 2 profiler (#695), I thought it would maybe be nice to also get the legacy logs in there.

I tried to figure out a proper way to do it, and came up with this solution:

It is a bit ugly (kernel override + eval, COMBO !), but well, it works.

Can anyone else think of a smarter way to do this ? I'd ideally like NOT to copy the existing eZDebug class, and would like this to work without *any* change in ezpublish legacy.

Do you think it  would be nice to have the legacy logs show up there ?

If this goes anywhere, an improvement could be to use a dedicated logger, with a custom channel (like ezpublish_legacy) so that those logs can be saved to a separate file.

Modified on Saturday 25 January 2014 3:11:03 pm by Bertrand Dunogier

No reply yet!


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from