title: How to use different fileName patterns based on the lifecycle environment
body: <p>How to use different versions of logback.xml based on the active spring boot profile</p>
  <pre><code>src/main/resources/logback.xml
  src/main/resources/logback-qa.xml
  src/main/resources/logback-staging.xml
  src/main/resources/logback-production.xml
  </code></pre>
  <p>My intention is to change the fileNamePattern alone based on the environment as well as the file path, I would prefer not to created additional files, if its easier to achieve it with a single file</p>
  <pre><code>&lt;fileNamePattern&gt;logs/app.%d{yyyy-MM-dd}.log&lt;/fileNamePattern&gt;
  &lt;fileNamePattern&gt;logs/app-qa.%d{yyyy-MM-dd}.log&lt;/fileNamePattern&gt;
  &lt;fileNamePattern&gt;logs/app-staging.%d{yyyy-MM-dd}.log&lt;/fileNamePattern&gt;
  &lt;fileNamePattern&gt;/logs/app-production.%d{yyyy-MM-dd}.log&lt;/fileNamePattern&gt;
  </code></pre>