Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is is possible to modify the maven console output to hide the [INFO] logging?

I was wondering if it was possible to modify the output from maven to for example hide the lines that start with [INFO] or to be able to see lines that start with [DEBUG]?

like image 841
ilcavero Avatar asked Nov 07 '10 05:11

ilcavero


People also ask

How do I view maven logs?

In order to enable detailed logs, use any of CLI Maven option, i.e. -X,--debug,-e,--errors. The result would be e.g.: [INFO] Surefire report directory: /path/to/project/target/surefire-reports. [INFO] Using configured provider org.

Where is the Maven log file?

home}/conf/logging/simplelogger. properties file.


2 Answers

I don't think there is a way to configure it as a logger but mvn -q hides the [INFO] lines and mvn -X shows the debug messages.

Update in 2015: newer versions of maven have added a config file where this is finally possible although as a global per install configuration, check on your $mavenInstallationDir/conf/logging/simplelogger.properties if the file doesn't exist then your maven version is probably too old, I believe it was added on the 3.1 release

like image 92
ilcavero Avatar answered Sep 18 '22 04:09

ilcavero


You can activate debug output using -X or --debug. For example:

mvn -X install 

You can hide INFO messages using -q or --quiet. For example:

mvn -q install 
like image 26
Pascal Thivent Avatar answered Sep 22 '22 04:09

Pascal Thivent