Assert.isNotNull(timeZone, "timeZone"); //$NON-NLS-1$
ILogResource log = createLogResource();
log.setName(logFile.getName());
log.setDialect(dialect);
try {
log.configure(SimpleLogResource.OPTION_ENCODING, encoding);
log.configure(SimpleLogResource.OPTION_LOCALE, LocaleUtils.getLocaleId(locale));
log.configure(SimpleLogResource.OPTION_TIMEZONE, timeZone.getID());
log.configure(OPTION_LOGFILE, logFile.getPath());
} catch (CoreException e) {
getLogger().error(e.getLocalizedMessage(), e);