Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm not familiar with Logback, but a normal Akka application ships with default settings in its <code>reference.conf</code>, and you override these settings in an <code>application.conf</code>. It sounds like you want to add a <em>third</em> layer of configuration, which is certainly your right!</p> <p>The easiest way I can see is to change your <code>application.conf</code> to include your <code>foo.conf</code> rather than the other way around. That way Akka will load the <code>application.conf</code>, which will then load <code>foo.conf</code>.</p> <p>But that may not work if you need a differently-named conf file for each JAR distribution. In which case I recommend you look into <a href="https://github.com/typesafehub/config#merging-config-trees" rel="nofollow noreferrer">Merging Config Trees</a> to programmatically load and combine configuration. Actually, <a href="http://doc.akka.io/docs/akka/2.1.0/general/configuration.html#Reading_configuration_from_a_custom_location" rel="nofollow noreferrer">Reading configuration from a custom location</a> in the Akka Configuration docs is almost exactly what you want, except you will want to load <code>myConfig</code> from a classpath resource rather than by parsing a string (see the Typesafe Config docs to find out how to do that).</p> <p>Regarding the Logback configuration, like I said, I don't know Logback. But you can read values out an Typesafe configuration <a href="https://github.com/typesafehub/config#api-example" rel="nofollow noreferrer">like so</a>, and you can set the Logback root logger level <a href="https://stackoverflow.com/a/3838108/49630">like so</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload