Preferences:Imports and Declaration
Imports and Declaration
Options:
- Import classes when performing "Insert" or "Replace"
- Import classes when performing "Declare Logger"
- Declare logger when performing "Insert" or "Replace"
- Declare logger when performing "Declare Logger"
- Logger Name
-
performs automatic import.
-
performs automatic declaration of your logger.
-
A "global Logger" with static methods doesn't need a declaration.
-
Name of logger. The name can be used in the template definitions. Example: "logger"
As a result the logger imports and declaration is automatically inserted like in that example:
import org.apache.log4j.Logger; public class MyClass { /** * Logger for this class */ private static final Logger logger = Logger.getLogger(MyClass.class);