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 String
HTTP_LOG_SUPPRESSION
-
Constructor Summary
Constructors Constructor Description ProtocolLogUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Configuration
getConf()
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
void
setConf(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:
getConf
in interfaceConfigurable
-
setConf
public void setConf(Configuration conf)
- Specified by:
setConf
in 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
- aThrowable
implementation associated with protocol activity- Returns:
- true if exception is configured to be logged as short message without stack trace
-
-