Reputation: 7196
The logger definition for the Base.class
looks like below. Here, a file handler is defined directly in the code.
private static final Logger logger = Logger.getLogger(Base.class.getName());
/ *
set file handler
*/
logger.addHandler(fileHandler); //just for `this` logger
When it comes to define a logger in another class, do I need to do everything with the file handler again (otherwise it won't write to the file)?
Upvotes: 0
Views: 68