title: Is there a way to change the level of a log based on it's content?
body: <p>I'm using Logback for logging, and in several places of my code, I have things like:</p>
  <pre><code>  if(message.contains(&quot;kitten&quot;)) {
      logger.info(message);
    } else if (message.contains(&quot;wolf&quot;)) {
      logger.error(message);
    }  else if(message.contains(&quot;chuck norris&quot;)) {
      logger.fatal(message);
    } else  {
      logger.warn(message);
    }
  </code></pre>
  <p>(most of the time the message comes from an external system)</p>
  <p>Is there a less ugly way to do?</p>