Simple Class: 

 

Place textcursor at a position in sourcecode and invoke Log4E in editor submenu:

A wizard will pop up showing all variables available:

Pressing "Next" directs you to the preview:

 

... and finishes in logger enriched sourcecode:

For more see the documentation on Actions:Insertions.

Joomla templates by a4joomla