eBay / parallec

Fast Parallel Async HTTP/SSH/TCP/UDP/Ping Client Java Library. Aggregate 100,000 APIs & send anywhere in 20 lines of code. Ping/HTTP Calls 8000 servers in 12 seconds. (Akka) www.parallec.io
Apache License 2.0
805 stars 173 forks source link

Add more documentation on reducing logs #20

Closed jeffpeiyt closed 8 years ago

jeffpeiyt commented 8 years ago

add more to http://www.parallec.io/docs/configurations/#reduce-verbose-logs

Original question: http://www.cyberforum.ru/java-j2se/thread1591264.html

jeffpeiyt commented 8 years ago

Hi Klopik,

This is Jeff, author of Parallec.io. Thanks for using this and give this feedback. Feel free to use the github submit issues when you need more help. I created one : https://github.com/eBay/parallec/issues/20 to track this to add more documentation to make this more clear

  1. for the response log brief for each response you may check here: http://www.parallec.io/docs/configurations/#reduce-verbose-logs . this may reduce a lot of response log if you have 10k api to hit.
  2. Parallec uses slf4j + logback for logging. And it is output is controlled by https://github.com/eBay/parallec/blob/master/src/main/resources/logback.xml

please simply put your own logback.xml to src/main/resources in your app. This will overwrite the setting definted in parallec. you may remove <appender-ref ref="STDOUT" /> (or change anyway you like) ; this will overwrite ( just tested with parallec.sample-applications; it remove most parallec logs to console)

  <root level="INFO">          
    <appender-ref ref="STDOUT" />
    <appender-ref ref="FILE" />
  </root>  

Sorry I do not write Russian. Feel free to use google or any translate for this. Hope this helps! Thanks,

Jeff

jeffpeiyt commented 8 years ago

done. updated http://www.parallec.io/docs/configurations/#reduce-verbose-logs