Thursday, August 10, 2017

Intellij SLF4J live template - psfl

In Settings > Editor > Live Templates
Under "others" section

Add the following with abbreviation: psfl and description: Insert slf4j logger

private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger($CLASS_NAME$.class);

And "Edit Variable" where CLASS_NAME = className()

No comments:

Post a Comment