title: How to setup logging when starting elasticsearch in embedded mode
body: <p>For testing purposes, I'm using ElasticSearch in "embedded mode", i. e. I'm writing Java code and start the ES node via <code>org.elasticsearch.node.NodeBuilder</code>. As it seems, there is no such comfort as of having a (yaml-)configuration layer on top of log4j as it is the case for the command-line setup just out of the box.</p>
  
  <p>But instead of keeping two separate configurations in sync to configure log4j, I'd like to use the existing <code>logging.yml</code> file in my embedded-world also.</p>
  
  <p>Is there a simple way to extract the logging-setup out of the command-line-setup-code?</p>