title: How to implement PropertyDefiner for logback to access multiple properties
body: <p>I would like to define some properties in my logback.xml config file and saw that by implementing the <a href="http://logback.qos.ch/manual/configuration.html#definingPropsOnTheFly" rel="nofollow">PropertyDefiner</a> was a great way to set properties in a customizable way. </p>
  
  <p>After starting to implement it I began to wonder how to access the value of the <em>name</em> attribute of the  element within the  tag. I'm not seeing anyway to do this and I'm scratching my head. Would this PropertyDefiner really make you create a new implementation for every single property? Why not just hard code it? I didn't see much discussion about this out on the web.</p>
  
  <p>I hope I'm just not seeing it and that the brains of stackoverflow can help me out. Does anyone know how to do this? Thanks!</p>
  
  <p>I found this <a href="http://mailman.qos.ch/pipermail/logback-user/2010-November/001941.html" rel="nofollow">discussion</a>: essentially the same question is asked, but no answer was returned.</p>
  
  <p>fyi: I want to customize how I get my properties because I am pulling it from a database. I have a helper class which pulls the properties in on server startup. These properties vary based on environment (dev, test, prod, etc.)</p>