title: Logback - how to get each logger logging to a separate log file?
body: <p>My application has lots of EJBs. The current bespoke Logger implementation creates a logger like this;</p>
  
  <p><strong>private static Logger logger = Logger.getInstance("SERVICE_NAME");</strong></p>
  
  <p>, and the logging will go into a file;</p>
  
  <p><strong>(path)/SERVICE_NAME/SERVICE_NAME.log</strong></p>
  
  <p>I want to replicate this behaviour with logback, but having real trouble grabbing the 'logger' name in the logback.xml configuration. It can be seen in the log encoder.pattern, i.e. "%d %-5level %logger{35} - %msg %n".</p>
  
  <p>Any ideas how I can get this into a property/variable and then use it in the  element?</p>