<div dir="ltr">I am using logstash-logback-encoder to print logs in json format.<br><br>My <code>logback.xml</code> looks like below:-<br><br><pre><code><?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="net.logstash.logback.encoder.LogstashEncoder">
<includeContext>false</includeContext>
<fieldNames>
<timestamp>timestamp</timestamp>
<version>[ignore]</version>
<levelValue>[ignore]</levelValue>
</fieldNames>
</encoder>
</appender>
<appender name="stash"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>/tmp/SolrUpdater.%d{yyyy-MM-dd}.log
</fileNamePattern>
<maxHistory>7</maxHistory>
</rollingPolicy>
<encoder class="net.logstash.logback.encoder.LogstashEncoder">
<includeContext>false</includeContext>
<fieldNames>
<timestamp>timestamp</timestamp>
<version>[ignore]</version>
<levelValue>[ignore]</levelValue>
</fieldNames>
</encoder>
</appender>
<root level="error">
<appender-ref ref="CONSOLE" />
<appender-ref ref="stash" />
</root>
</configuration><br><br></code><span style="font-family:arial,helvetica,sans-serif">Can someone let me know how can I display all <code>level</code> in lowercase like</span> <code>error</code>, <span style="font-family:arial,helvetica,sans-serif">rather than the default</span> <code>ERROR</code> <span style="font-family:arial,helvetica,sans-serif">and</span> <code>WARN</code> <span style="font-family:arial,helvetica,sans-serif">as</span> <code>warning</code>?<br><br></pre><pre><span style="font-family:arial,helvetica,sans-serif">Thanks,<br></span></pre><pre><span style="font-family:arial,helvetica,sans-serif">Debraj</span><br></pre></div>