You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Sagar Salal (Jira)" <ji...@apache.org> on 2022/02/28 08:07:00 UTC
[jira] [Comment Edited] (LOG4J2-3416) Line Number Not getting printeed
[ https://issues.apache.org/jira/browse/LOG4J2-3416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17498748#comment-17498748 ]
Sagar Salal edited comment on LOG4J2-3416 at 2/28/22, 8:06 AM:
---------------------------------------------------------------
[~rgoers] I have used IncludeLocation=true also
Please find below for your reference
<Logger name="com.xyx.abc" additivity="false"
includeLocation="true"> <appender-ref ref="RollingFile" level="INFO" />
</Logger>
Is there any other way to enable location
was (Author: JIRAUSER285859):
[~rgoers] I have used IncludeLocation=true also
Please find below for your reference
<Logger name="com.xyx.abc" additivity="false"
includeLocation="true"> <appender-ref ref="RollingFile" level="INFO" />
</Logger>
> Line Number Not getting printeed
> --------------------------------
>
> Key: LOG4J2-3416
> URL: https://issues.apache.org/jira/browse/LOG4J2-3416
> Project: Log4j 2
> Issue Type: Bug
> Components: Appenders
> Affects Versions: 2.17.0
> Reporter: Sagar Salal
> Priority: Major
>
> I am not able to print line numbers in logs. I am using 2.17.0 version and using pattern
> <PatternLayout
> pattern="%d\{yyyy-MM-dd HH:mm:ss,SSS} [%t] %-5p %logger\{36}:%L %X - %m%n" />.
>
> I have tried with multiple patterns but issue still persists. It is basically neglecting *%L.* Can anyone please have a look at this?
--
This message was sent by Atlassian Jira
(v8.20.1#820001)