Example usage for org.springframework.boot.logging LoggingSystem ROOT_LOGGER_NAME

List of usage examples for org.springframework.boot.logging LoggingSystem ROOT_LOGGER_NAME

Introduction

In this page you can find the example usage for org.springframework.boot.logging LoggingSystem ROOT_LOGGER_NAME.

Prototype

String ROOT_LOGGER_NAME

To view the source code for org.springframework.boot.logging LoggingSystem ROOT_LOGGER_NAME.

Click Source Link

Document

The name used for the root logger.

Usage

From source file:org.springframework.boot.context.logging.LoggingApplicationListener.java

private void setLogLevel(LoggingSystem system, String name, String level) {
    try {//from   w w  w  .j  a  v a  2  s .  c om
        name = name.equalsIgnoreCase(LoggingSystem.ROOT_LOGGER_NAME) ? null : name;
        system.setLogLevel(name, coerceLogLevel(level));
    } catch (RuntimeException ex) {
        this.logger.error("Cannot set level: " + level + " for '" + name + "'");
    }
}