title: Log4j - Force log message parameters
body: <p>I am trying to force the detail within log4j messages as opposed to just a string. Ultimately I would like to have something like:</p>
  
  <p>logger.info("component", "error code", " error message");</p>
  
  <p>I may even use an enum for the component.</p>
  
  <p>I would then expect the message to appear in the log as "time - component - code - message"</p>
  
  <p>Any ideas?</p>