Skip to content

Instantly share code, notes, and snippets.

@jillesvangurp
Last active November 30, 2015 10:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jillesvangurp/107b65f43707a905a7f1 to your computer and use it in GitHub Desktop.
Save jillesvangurp/107b65f43707a905a7f1 to your computer and use it in GitHub Desktop.
eclipse template for slf4j LOG declaration

eclipse->Preferences->java->editor->templates

create a new template with the name LOG and paste this

private static final Logger LOG = LoggerFactory.getLogger(${enclosing_type}.class);

Now when you type LOG and ctrl+space, you can autocomplete and insert a logger definition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment