Are there some live template or something, to add logger definition into a class?
In Eclipse I had a template:
private static final Logger log = LoggerFactory.getLogger(${enclosing_type}.class);
Don't see something about this in Log Support plugin.
Using Intellij Live Template:
Settings -> Editor -> Live Templates
Setting like bellow:
private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger($CLASSNAME$.class);
To expand a code snippet, type "logger" and press Tab
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With