[logback-user] Logs not displaying line numbers

praveen patil iampraveenpatil at gmail.com
Fri Jun 21 08:12:52 CEST 2013


Hi folks,

 This is my configuration
{code}
<configuration>
    <appender name="SIFT"
class="ch.qos.logback.classic.sift.SiftingAppender">
        <discriminator>
            <key>descriminatorId</key>
            <defaultValue>unknown</defaultValue>
        </discriminator>
        <sift>
            <appender class="ch.qos.logback.core.FileAppender">
                <file>runtime/datamanager/${descriminatorId}.html</file>
                <layout class="ch.qos.logback.classic.PatternLayout">
                    <pattern><div class="%p">%d \(%thread\)
[%logger{0} :%line:%-5level] %msg%n%rEx</div></pattern>
                </layout>
            </appender>
        </sift>
    </appender>

    <root level="ALL">
        <appender-ref ref="SIFT" />
    </root>
</configuration>
{code}

the logs contains '-2' instead of line number.
2013-06-21 11:31:09,196 (http-0.0.0.0-8443-2) [DataImportEvents :-2:INFO ]
=====================data import==============
2013-06-21 11:31:09,201 (http-0.0.0.0-8443-2) [DataImportEvents :-2:ERROR]
=====================data import==============

any one have any idea?


-- 

Kind Regards

Pravin Patil
HotWax Media Pvt Ltd.

direct :+91 9039689196
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20130621/da6b0762/attachment.html>


More information about the Logback-user mailing list