setLevel static method

void setLevel(
  1. String name,
  2. SpringLogLevel? level
)

Sets the minimum level of the logger name and of the loggers below it (a.b also applies to a.b.c); null makes it inherit again. Configuration does the same with logging.level.<name>.

Implementation

static void setLevel(String name, SpringLogLevel? level) {
  if (level == null) {
    _levels.remove(name);
  } else {
    _levels[name] = level;
  }
  _effective.clear();
}