Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable Crawler4J logger?

Tags:

java

crawler4j

I am crawling using Crawler4J.

I don't want to print log messages.

But Crawler4J has a logger in it.

How can I disable logger inner Crawler4J lib?

like image 765
이현규 Avatar asked Dec 02 '25 15:12

이현규


1 Answers

Crawler4J is using slf4j API and logback as implementation. There was an issue about having the logback.xml file inside the build jar, and it was fixed.

Please make sure that you have the latest version and you don't have the file logback.xml inside the crawler4j jar.

You can disable the logging by providing your own logback.xml file with the level set to OFF like this question.

like image 75
Amr ElAdawy Avatar answered Dec 04 '25 07:12

Amr ElAdawy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!