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

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: https://github.com/bdunogier/ezpublish-kernel/compare/ezsystems:EZP-22152-eztemplate_web_debug_toolbar...debug_legacy_logs?expand=1.

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!

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from