Class ProtocolLogUtil

java.lang.Object
org.apache.nutch.net.protocols.ProtocolLogUtil
All Implemented Interfaces:
Configurable

public class ProtocolLogUtil extends Object implements Configurable
  • Field Details

  • Constructor Details

    • ProtocolLogUtil

      public ProtocolLogUtil()
  • Method Details

    • getConf

      public Configuration getConf()
      Specified by:
      getConf in interface Configurable
    • setConf

      public void setConf(Configuration conf)
      Specified by:
      setConf in interface Configurable
    • logShort

      public boolean logShort(Throwable t)
      Return true if exception is configured to be logged as short message without stack trace, usually done for frequent exceptions with obvious reasons (e.g., UnknownHostException), configurable by http.log.exceptions.suppress.stack
      Parameters:
      t - a Throwable implementation associated with protocol activity
      Returns:
      true if exception is configured to be logged as short message without stack trace