anchor.diff:  [[features.logging]]
   == Logging
   Spring Boot uses https://commons.apache.org/logging[Commons Logging] for all internal logging but leaves the underlying log implementation open.
  -Default configurations are provided for {java-api}/java/util/logging/package-summary.html[Java Util Logging], https://logging.apache.org/log4j/2.x/[Log4J2], and https://logback.qos.ch/[Logback].
  +Default configurations are provided for {java-api}/java/util/logging/package-summary.html[Java Util Logging], https://logging.apache.org/log4j/2.x/[Log4j2], and https://logback.qos.ch/[Logback].
   In each case, loggers are pre-configured to use console output with optional file output also available.
   
   By default, if you use the "`Starters`", Logback is used for logging.
  
positive.code: Use the `name` attribute to specify which profile accepts the configuration.
  The `<springProfile>` tag can contain a profile name (for example `staging`) or a profile expression.
  A profile expression allows for more complicated profile logic to be expressed, for example `production & (eu-central | eu-west)`.
  Check the {spring-framework-docs}/core.html#beans-definition-profiles-java[reference guide] for more details.
  The following listing shows three sample profiles:
  
  [source,xml,subs="verbatim",indent=0]
  
negative.code: [[features.logging.file-rotation]]
  === File Rotation
  If you are using the Logback, it is possible to fine-tune log rotation settings using your `application.properties` or `application.yaml` file.
  For all other logging system, you will need to configure rotation settings directly yourself (for example, if you use Log4j2 then you could add a `log4j2.xml` or `log4j2-spring.xml` file).
  
  The following rotation policy properties are supported:
  
  