I have quite a simple problem but can’t find a solution for it.
I have a logger with a file handler added, but it still spams the hell out of my console.
How could I get the logger to solely route all output to a file, with NO console outputs?
I have quite a simple problem but can’t find a solution for it. I
Share
Remove all handlers (using Logger.getHandlers() and calling Logger.removeHandler() for each handler) from the root logger before adding your file handler.