public class ErrorHandlerFactory extends Object
Modifier and Type | Field and Description |
---|---|
static ErrorHandler |
errorHandlerNoLogging
Silent error handler
|
static ErrorHandler |
errorHandlerStd
Standard error handler - logs to stdLogger
|
static ErrorHandler |
errorHandlerStrict
Strict error handler - logs to stdLogger - exceptions for warnings
|
static ErrorHandler |
errorHandlerStrictNoLogging
Silent, strict error handler
|
static ErrorHandler |
errorHandlerWarn
Warning error handler - logs to stdLogger - mesages for warnings and some errors
|
static org.slf4j.Logger |
noLogger |
static org.slf4j.Logger |
stdLogger |
Constructor and Description |
---|
ErrorHandlerFactory() |
Modifier and Type | Method and Description |
---|---|
static ErrorHandler |
errorHandlerSimple() |
static ErrorHandler |
errorHandlerStd(org.slf4j.Logger log) |
static ErrorHandler |
errorHandlerStrict(org.slf4j.Logger log) |
static ErrorHandler |
errorHandlerStrictSilent() |
static ErrorHandler |
errorHandlerWarning(org.slf4j.Logger log) |
static ErrorHandler |
getDefaultErrorHandler()
Get the current default error handler
|
static void |
setDefaultErrorHandler(ErrorHandler errorHandler)
Set the current default error handler - use carefully, mainly for use in testing
|
public static final org.slf4j.Logger stdLogger
public static final org.slf4j.Logger noLogger
public static final ErrorHandler errorHandlerStd
public static final ErrorHandler errorHandlerStrict
public static final ErrorHandler errorHandlerWarn
public static final ErrorHandler errorHandlerNoLogging
public static final ErrorHandler errorHandlerStrictNoLogging
public static ErrorHandler errorHandlerStrictSilent()
public static ErrorHandler errorHandlerStrict(org.slf4j.Logger log)
public static ErrorHandler errorHandlerStd(org.slf4j.Logger log)
public static ErrorHandler errorHandlerWarning(org.slf4j.Logger log)
public static ErrorHandler errorHandlerSimple()
public static ErrorHandler getDefaultErrorHandler()
public static void setDefaultErrorHandler(ErrorHandler errorHandler)
Licenced under the Apache License, Version 2.0