Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to provide linespace beween two logger messages?
    primarykey
    data
    text
    <p>In my case,</p> <p>I am able to see my logger messages without line spaces.I dont know so much about the layout and patterns of log4j.</p> <p>my log4j.xml is::</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!DOCTYPE log4j:configuration PUBLIC "-//APACHE//DTD LOG4J 1.2//EN" "log4j.dtd"&gt; &lt;log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"&gt; &lt;!-- Appenders --&gt; &lt;appender name="console" class="org.apache.log4j.ConsoleAppender"&gt; &lt;param name="Target" value="System.out" /&gt; &lt;layout class="org.apache.log4j.PatternLayout"&gt; &lt;param name="ConversionPattern" value="%-5p: %d{HH:mm:ss.SSS} %-5l - %m%n" /&gt; &lt;/layout&gt; &lt;/appender&gt; &lt;appender name="FILE" class="org.apache.log4j.RollingFileAppender"&gt; &lt;errorHandler class="org.apache.log4j.helpers.OnlyOnceErrorHandler" /&gt; &lt;param name="File" value="E:/hib808.log" /&gt; &lt;param name="Append" value="true" /&gt; &lt;param name="MaxFileSize" value="20000KB" /&gt; &lt;param name="MaxBackupIndex" value="400" /&gt; &lt;layout class="org.apache.log4j.PatternLayout"&gt; &lt;param name="ConversionPattern" value="%-5p: %d{dd MMM yyyy HH:mm:ss.SSS} %-5l - %m%n" /&gt; &lt;/layout&gt; &lt;/appender&gt; &lt;!-- Application Loggers --&gt; &lt;logger name="mkcl.oesclient.controllers"&gt; &lt;level value="error" /&gt; &lt;/logger&gt; &lt;!-- 3rdparty Loggers --&gt; &lt;logger name="org.springframework.core"&gt; &lt;level value="error" /&gt; &lt;/logger&gt; &lt;logger name="org.springframework.beans"&gt; &lt;level value="error" /&gt; &lt;/logger&gt; &lt;logger name="org.springframework.context"&gt; &lt;level value="error" /&gt; &lt;/logger&gt; &lt;logger name="org.springframework.web"&gt; &lt;level value="error" /&gt; &lt;/logger&gt; &lt;!-- Root Logger --&gt; &lt;root&gt; &lt;priority value="error" /&gt; &lt;appender-ref ref="console" /&gt; &lt;appender-ref ref="FILE" /&gt; &lt;/root&gt; &lt;/log4j:configuration&gt; </code></pre> <p>my output is like this::</p> <p>ERROR: 22 Aug 201310:11:50.674mkcl.oesclient.utilities.TestToGenerateException.getException<br> ERROR: 22 Aug 2013 10:11:55.194 mkcl.oesclient.controllers xyz</p> <p>I have to provide a linespace between these messages.</p>
    singulars
    1. This table or related slice is empty.
    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. 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