You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by Kevin Minder <ke...@hortonworks.com> on 2014/03/16 15:46:45 UTC
TIP: Enabling HttpClient logging in groovy scripts
Add this to the script and enjoy!
import org.apache.log4j.*
BasicConfigurator.configure()
LogManager.rootLogger.level = Level.INFO
LogManager.getLogger("org.apache.http").level = Level.DEBUG
--
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to
which it is addressed and may contain information that is confidential,
privileged and exempt from disclosure under applicable law. If the reader
of this message is not the intended recipient, you are hereby notified that
any printing, copying, dissemination, distribution, disclosure or
forwarding of this communication is strictly prohibited. If you have
received this communication in error, please contact the sender immediately
and delete it from your system. Thank You.