title: Add a static prefix to everylogged message with slf4j
body: <p>Is there a way to add a static (not context dynamic) prefix to all logged messages when using slf4j <em>without</em> altering the formatting of the underlying logging framework? To be clear, that means that using MDC is not an option because this would need to be reflected in the formatting configuration of the underlying framework.</p>
  
  <p>Is there another option than creating a custom wrapper for the slf4j logger and using it wherever I would normally simply initialize a slf4j logger?</p>
  
  <pre><code>public class CustomLogger {
  
    private final String prefix = "custom-prefix";
  
    private final Logger logger;
  
    public CustomLogger(Class clazz) {
      logger = LoggerFactory.getLogger(clazz);
    }
  
    public void info(String info) {
      logger.info (prefix + info);
    }
  
    // other methods...
  
  }
  </code></pre>
  
  <p>If some context is needed: I am working in an environment where multiple plugins run on a core  application. Within such a plugin I would like to add the plugin's name as a prefix to logged messages.</p>