Search code examples
javaeclipseeclim

Disable automatic import of apache LogFactory and Log


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?


Solution

  • 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.