I configured Logger
in my main class.
public static final Logger LOGGER = Logger.getLogger(DashBoard.class.getName());
and I'm using it this way:
LOGGER.log(Level.SEVERE, "Error occur in FileHandler.", exception);
But now I wanted to use the same log file in other classes.
Is it good practice to use Logger
this way?
- > config.class
// devido a ter definido como static tenho acesso nas outras classes deste modo
DashBoard.LOGGER.log(Level.INFO, "Loading... FxmlQualidade.fxml");