${:import(org.slf4j.Logger,org.slf4j.LoggerFactory)}
private static final Logger LOG = LoggerFactory.getLogger(${primary_type_name}.class);
private static final Logger LOG = LoggerFactory.getLogger(${primary_type_name}.class);
To use it, open preferences > java > editor > templates, create a new template with the name "log" and paste the code above in the Pattern field.
No comments:
Post a Comment