/** * Reloads the logging rules from the configuration file. * * @throws IllegalArgumentException if a rule has an invalid level. */ @Impure public void reload() throws IllegalArgumentException { setRules(Files.readNonCommentNonEmptyTrimmedLines(file).map(LoggingRule::decode).evaluate()); }