Package org.apache.nutch.net.protocols
Class ProtocolLogUtil
- java.lang.Object
-
- org.apache.nutch.net.protocols.ProtocolLogUtil
-
- All Implemented Interfaces:
Configurable
public class ProtocolLogUtil extends Object implements Configurable
-
-
Field Summary
Fields Modifier and Type Field Description static StringHTTP_LOG_SUPPRESSION
-
Constructor Summary
Constructors Constructor Description ProtocolLogUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigurationgetConf()booleanlogShort(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 byhttp.log.exceptions.suppress.stackvoidsetConf(Configuration conf)
-
-
-
Field Detail
-
HTTP_LOG_SUPPRESSION
public static final String HTTP_LOG_SUPPRESSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getConf
public Configuration getConf()
- Specified by:
getConfin interfaceConfigurable
-
setConf
public void setConf(Configuration conf)
- Specified by:
setConfin interfaceConfigurable
-
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 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
-
-