Logging to file and console

I would like to be able to log all message including info and debug to a file while the error and lifecycle still go to the console.

This way the output on Jenkins isn’t overwhelming but I can look at the log file when I need to understand a specific problem.