Package org.docx4j.fonts.fop.util
Class LogUtil
java.lang.Object
org.docx4j.fonts.fop.util.LogUtil
public class LogUtil
extends java.lang.Object
Convenience Logging utility methods used in FOP
-
Constructor Summary
Constructors Constructor Description LogUtil() -
Method Summary
Modifier and Type Method Description static voidhandleError(org.slf4j.Logger log, java.lang.String errorStr, boolean strict)Convenience method that handles any error appropriatelystatic voidhandleException(org.slf4j.Logger log, java.lang.Exception e, boolean strict)Convenience method that handles any error appropriately
-
Constructor Details
-
LogUtil
public LogUtil()
-
-
Method Details
-
handleError
public static void handleError(org.slf4j.Logger log, java.lang.String errorStr, boolean strict) throws FOPExceptionConvenience method that handles any error appropriately- Parameters:
log- logerrorStr- error stringstrict- validate strictly- Throws:
FOPException- fop exception
-
handleException
public static void handleException(org.slf4j.Logger log, java.lang.Exception e, boolean strict) throws FOPExceptionConvenience method that handles any error appropriately- Parameters:
log- loge- exceptionstrict- validate strictly- Throws:
FOPException- fop exception
-