Package org.sklsft.commons.log
Class ErrorLogger
java.lang.Object
org.sklsft.commons.log.ErrorLogger
-
Constructor Summary
ConstructorsConstructorDescriptionErrorLogger(org.sklsft.commons.text.serialization.Serializer serializer) ErrorLogger(org.sklsft.commons.text.serialization.Serializer serializer, boolean printErrorStackInRootLogger) -
Method Summary
Modifier and TypeMethodDescriptionvoidlogApplicationException(org.sklsft.commons.api.exception.ApplicationException e) Used to log an errorvoidvoidsetPrintErrorStackInRootLogger(boolean printErrorStackInRootLogger) voidsetSerializer(org.sklsft.commons.text.serialization.Serializer serializer)
-
Constructor Details
-
ErrorLogger
public ErrorLogger() -
ErrorLogger
public ErrorLogger(org.sklsft.commons.text.serialization.Serializer serializer) -
ErrorLogger
public ErrorLogger(org.sklsft.commons.text.serialization.Serializer serializer, boolean printErrorStackInRootLogger)
-
-
Method Details
-
setPrintErrorStackInRootLogger
public void setPrintErrorStackInRootLogger(boolean printErrorStackInRootLogger) -
setSerializer
public void setSerializer(org.sklsft.commons.text.serialization.Serializer serializer) -
logApplicationException
public void logApplicationException(org.sklsft.commons.api.exception.ApplicationException e) Used to log an error -
logException
-