Disable automatic import of apache LogFactory and Log

102 views Asked by At

Using eclim whenever I type log. the following packages are automatically imported:

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

The following line is also added the start of my class:

private static final Log log =
    LogFactory.getLog(ClassName.class);

Not sure if this behavior is coming from Eclipse or Eclim. Is it possible to disable this?

1

There are 1 answers

0
Arnault Le Prévost-Corvellec On BEST ANSWER

This is part of vim configuration, I suggest you to read this to solve your issue : http://eclim.org/vim/java/logging.html

In short, you may add

let g:EclimLoggingDisabled = 1

through :VimSettings or to your .vimrc.