Package org.apache.nutch.net.protocols
Class ProtocolLogUtil
java.lang.Object
org.apache.nutch.net.protocols.ProtocolLogUtil
- All Implemented Interfaces:
Configurable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConf()booleanReturn 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 byhttp.log.exceptions.suppress.stackvoidsetConf(Configuration conf)
-
Field Details
-
HTTP_LOG_SUPPRESSION
- See Also:
-
-
Constructor Details
-
ProtocolLogUtil
public ProtocolLogUtil()
-
-
Method Details
-
getConf
- Specified by:
getConfin interfaceConfigurable
-
setConf
- Specified by:
setConfin interfaceConfigurable
-
logShort
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 byhttp.log.exceptions.suppress.stack- Parameters:
t- aThrowableimplementation associated with protocol activity- Returns:
- true if exception is configured to be logged as short message without stack trace
-