Eclipse JUL Editor Templates

I have created Eclipse Java editor templates for JUL (java.util.logging), similar to the Eclipse SLF4J Editor Templates.

Download the Eclipse JUL Editor Templates.

Simply unzip and import the templates via the Java -> Editor -> Templates preferences page in the Eclipse IDE.

EclipseSLF4JEditorTemplatesScreenshotAfterwards, type “sloc” or “ilog” and push Strg-Space to expand the template. “sloc” will add a static final Logger, “ilog” will put the Logger in an instance variable. The pros and cons of both methods are described here.

Add Comment

Required fields are marked *. Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.