public static void logException(Throwable e, LoggerLevel logLevel) throws CriticalFailure
	{
		try {
			throw e;
		} catch (JWorldGenException e1) {
			if (level.getValue() >= logLevel.getValue())
			{
				System.err.println(logLevel+": "+e1.getMessage());
			}
		} catch (Throwable e1) {
			if (logLevel == LoggerLevel.CRITICAL)
			{
				e.printStackTrace();
			}
			if (level.getValue() >= logLevel.getValue())
			{
				System.err.println(logLevel+": "+e1.getMessage());
			}
		} finally {
			if (logLevel == LoggerLevel.CRITICAL)
			{
				throw new CriticalFailure(e.getMessage());
			}
		}
	}