@ SuppressWarnings ( "all" ) protected void warnAboutIncorrectPluginConfiguration ( final String propertyName , final String description ) { final StringBuilder builder = new StringBuilder ( ) ; builder . append ( "\n+=================== [Incorrect Plugin Configuration Detected]\n" ) ; builder . append ( "|\n" ) ; builder . append ( "| Property : " + propertyName + "\n" ) ; builder . append ( "| Problem : " + description + "\n" ) ; builder . append ( "|\n" ) ; builder . append ( "+=================== [End Incorrect Plugin Configuration Detected]\n\n" ) ; getLog ( ) . warn ( builder . toString ( ) . replace ( "\n" , NEWLINE ) ) ; }
Convenience method to invoke when some plugin configuration is incorrect . Will output the problem as a warning with some degree of log formatting .