logstash/logstash-logback-encoder — pull request #18 by mpecan (2014-02-03 17:32:33+00:00)
Title: Added test case for logback configuration

Hello,

The current state on master does not allow the use of a logback.xml file for the configuration, as the following error is emitted on the console during a run with a logback.xml that has the debug flag set:
```
18:27:39,129 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@13:27 - no applicable action for [customFields], current pattern is [[configuration][appender][encoder][customFields]]
```
This was due to the getter getCustomFields() returning a JsonNode object instead of a String object. As such the JoranConfigurator could not inject the customFields.

To test my claims you can change the getter back to the previous implementation and run the tests. You will see that the new test using the logback-test.xml file will fail.

For temporary storage of the log file I used the temporary directory as set in the system variable "java.io.tmpdir".

Cheers,

Matjaž