public static Logger fromString(String string) {
		// TODO: I can write it better!
		Matcher matcher = PATTERN.matcher(string);
		if (matcher.matches()) {
			if (matcher.group(1).equals("stream")) {
				if (matcher.groupCount() > 1) {
					if (matcher.group(2).equals("err")) {
						return new StreamLogger(System.err);
					} else if (matcher.group(2).equals("out")) {
						return new StreamLogger(System.out);
					} else {
						return DEFAULT_LOGGER;
					}
				} else {
					return DEFAULT_LOGGER;
				}
			} else if (matcher.group(1).equals("file")) {
				if (matcher.groupCount() > 1 && !matcher.group(2).isEmpty()) {
					return new FileLogger(new File(matcher.group(2)));
				} else {
					return new FileLogger(
						new File(FileLogger.DEFAULT_FILENAME));
				}
			} else {
				return DEFAULT_LOGGER;
			}
		} else {
			return DEFAULT_LOGGER;
		}
	}