title: How to set properties attributes in Java programmatically?
body: <p>I'm looking over <a href="https://docs.getsentry.com/hosted/clients/java/modules/raven/" rel="nofollow">sentry for java</a> and it requires a properties file:</p>
  
  <pre><code>.level=WARN
  handlers=net.kencochrane.raven.jul.SentryHandler
  net.kencochrane.raven.jul.SentryHandler.dsn=https://&lt;key&gt;:&lt;secret&gt;@app.getsentry.com/&lt;project&gt;
  net.kencochrane.raven.jul.SentryHandler.tags=tag1:value1,tag2:value2
  </code></pre>
  
  <p>It loads the file by: <code>java -Djava.util.logging.config.file=/path/to/app.properties MyClass</code></p>
  
  <p>I want to set the properties in java source; how do I do that?</p>
  
  <p>It looks like I may be able to use the <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Properties.html" rel="nofollow">Properties</a> class? Not sure though (Java isn't my primary language).</p>