Home How to remove verbosity from log4j
Reply: 0

How to remove verbosity from log4j

user919
1#
user919 Published in July 16, 2018, 8:34 pm

My log4j log file looks like this.

 2018-01-12 09:21:33,082 [http-nio-8080-exec-39] INFO  diversotron.PropotronService  - ...connected to Selenium Standlone webdriver
 2018-01-12 09:21:33,727 [http-nio-8080-exec-39] INFO  diversotron.PropotronService  - ...attempting to read propotron.ini file.
 2018-01-12 09:21:33,744 [http-nio-8080-exec-39] INFO  diversotron.PropotronService  - ...GDS server name from the propotron.ini file is gdsfareqa2
 2018-01-12 09:21:34,750 [http-nio-8080-exec-39] INFO  diversotron.PropotronService  - ...attempting connection to Propotron.

I'd like to get rid of the date, the "[http-nio-8080-exec-39]" text the log category INFO and the service name. Is that possible?

What would the pattern look like to do that?

 def pattern = new PatternLayout("%-5p [%t]: %m%n")

Any help vastly appreciated!

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.317821 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO