Log4E

Log4E is a free Eclipse Plugin which helps you to use your logger easily in Java Projects.

The Plugin Log4E is not bound to any special logging framework. Thus you might be able to adapt to your own logger by defining your own templates using the preferences. It has active support for Log4j, Commons Logging and JDK 1.4 logging.

Use the context menu of a java file or the context menu of an editor and get to the submenu "Log4". Notice that the editor submenu provides additional tasks.
Every of the following tasks can be invoked either on class or on method level.

Logger Declaration

    Inserting import statement and logger declaration of your favourite logger in your sourcecode automatically.
    Kind of logger and imports are configurable in the Preferences.

Logger Inserts

    Automatic inserts of logger statements at certain method entries: begin of method, exit of method (before every return statement and at the end of method) and in catch blocks.
    Furthermore you can add a logger statement at any position you like supported by a wizard.
    logger levels and much more is configurable in the Preferences (Statements and Positions).

Replacements of System out's

    Replacement of System out's, System.err's and e.printTrackTrace Statements.
    Logger levels are configurable in the Preferences.

Logger Modification

    Note that the modification task could delete a logger message under certain circumstances! Please read the modification algorithm section before using it.

    Modification of already exisiting logger statements: Replacing logger message with standard information, surrounding log statements with isLevelEnabled() if clauses and more.


Don't hesitate to request for new features or help at log4e@jayefem.de


By the way: Did you know that log(4) * e = 1.63656873 ?




http://log4e.jayefem.de