| General |
|
|
MenusLog4E can be invoked from several menus and context menus
Main menu EditLog4E defines a submenu in the main menu "Edit". It provides the same functionality as the Context menu of a Java editor. This menu has to be enabled once. See more at the Enable shortcuts section.
Context menu Java editorDeclare loggerSee Logger Declaration.Log this variableSee Insertions for selected variable for more information.Log at this position...This task has been formerly called "Insert Log Statement At This Position...". See Insert at certain position for more information.Log this methodThis task has been formerly called "Insert Log Statements For This Method". See Insertions for method/class for more information.Log this classThis task has been formerly called "Insert Log Statements For This Class". See Insertions for method/class for more information.Re-apply in this methodThis task has been formerly called "Modify Log Statements For This Method". See Logger Re-application for more information.Re-apply in this classThis task has been formerly called "Modify Log Statements For This Class". See Logger Re-application for more information.Substitute System.out's in this methodThis task has been formerly called "Replace System.out's For This Method". See Substitution of System out's for more information.Substitute System.out's in this classThis task has been formerly called "Replace System.out's For This Class". See Substitution of System out's for more information.Create ToStringStyle class... [Pro version only]See perferences page Log4E > ToStringGenerator for more information.Context menu package explorerThe context menu in the package explorer provides only tasks that can be invoked on class level except when selecting a method in the package explorer (which is possible now).Log4E provides multiple selection on project/source folder/package/class level [Pro version only]. See the Multiple files section for more information.
ShortcutsSince version 1.0.0 shortcuts are enabled for Log4E. Eclipse provides the possibility to re-define them. The shortcuts are defined in the menu Edit. Usually they have to be enabled once.
Enable shortcutsTo enable the submenu in the main menu Edit and enable the shortcuts, follow the these steps:
Key definitionsDeclare logger Log this variable Log at this position... Log this method Log this class Re-apply in this method Re-apply in this class Substitute System.out's in this method Substitute System.out's in this class Key Re-definitionIn Eclipse you can re-define any shortcut you like. Follow these steps:
Preview wizardMultiple files [Pro version only]Log4E provides multiple file selection either on project, source folder, package or class level. If multiple files were selected, you can browse them in the preview wizard and confirm or decline the changes the at once. The preview wizard will only shown up if specified in Preferences.Edit source code [Pro version only]In the preview wizard you have the possibility to edit the modified source code before confirming the changes. Just put the text cursor anywhere you like in the "Modified Source" editor and edit the source. Save the code by right clicking into the editor and click "Save".button explanation:
TemplatesThe most important part of the preferences are the templates. They affect which logger should be used.Choose your loggerTemplates are defined in the Log4E preferences page. Several predefined templates are available (Log4j, SLF4J, Commons Logging, JDK 1.4 logging and ATG logging).One is able to adapt the templates to his or her own logger. [Pro version only] Define your own templates [Pro version only]See Template Definitions for more information.Static loggerIf using a "static logger" i.e. a class that provides static logging methods, you have to adapt your preferences in Log4E > Imports and Declaration:
|



