IntelliJ Live Template for org.apache.log4j Logger
Go to Preferences -> Live Templates -> Other -> "+" (Add new one)
Enter in "Abbrevation" for example:
logger
Ente this in the "Template text":
private static Logger logger = Logger.getLogger($CLASS_NAME$.class);$END$
Then Click "Edit Variables" and check Skip if defined, enter this into Expression:
className()
Now you can type:
logger + <TAB>
Written by @kjellski
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Logging
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#