Thursday, July 14, 2011

eclipse template for commons logger

create an eclipse auto-complete template for creating a logger

Window -> Show View -> Other.. -> Templates

new java template

name logger


${:import(org.apache.commons.logging.LogFactory,org.apache.commons.logging.Log)}
private final static Log log = LogFactory.getLog(${enclosing_type}.class);


now ctrl+space and logger will save you some typing

No comments:

Post a Comment