* sets the logging threshold for the appender
*/
private void initializeLoggingLevel() {
int logLevel = configurationService.getLoggingLevel();
try {
TextPaneAppender appender = (TextPaneAppender) Logger.getLogger("org.pdfsam").getAppender("JLogPanel");
Level loggingLevel = Level.toLevel(logLevel, Level.DEBUG);
log.info(GettextResource.gettext(getI18nResourceBundle(), "Logging level set to ") + loggingLevel);
appender.setThreshold(loggingLevel);
} catch (Exception e) {
log.warn(GettextResource.gettext(getI18nResourceBundle(), "Unable to set logging level."), e);
}
}