logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph Goers (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (LOG4J2-50) Incorrect %C output (FQCN)
Date Sun, 18 Sep 2011 06:35:09 GMT

     [ https://issues.apache.org/jira/browse/LOG4J2-50?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ralph Goers resolved LOG4J2-50.
-------------------------------

    Resolution: Fixed
      Assignee: Ralph Goers

The category problems for the SLF4J api have been corrected. This probably also corrects the
problem with log4j-over-slf4j, which is what I assume you meant by category2.  However, it
would be more appropriate to use the log4j12-api component of Log4j 2.0 if Log4j 2.0 is the
underlying implementation.

> Incorrect %C output (FQCN) 
> ---------------------------
>
>                 Key: LOG4J2-50
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-50
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Core
>            Reporter: John Vasileff
>            Assignee: Ralph Goers
>
> The fully qualified class name must be set correctly to support conversions like %C.
 In some cases, %C information is incorrect.  I think this is related to AbstractLogger allowing
getFQCN() to be overridden.  Log methods handled by AbstractLogger should have AbstractLogger's
FQCN, not that of the subclass.
> Example:
> slf4jLogger.info("slf4jLogger test %C."); // works; SLF4JLogger overrides this method
> slf4jLogger.info("slf4jLogger test %C.", t); // fails with '?'; handled by AbstractLogger
> category2.info("category test %C"); // fails with 'o.a.l.Category'
> Output:
> INFO Log4j2Testing [main] slf4jLogger test %C.
> INFO ? [main] slf4jLogger test %C.
>  java.lang.Throwable
> 	at Log4j2Testing.main(Log4j2Testing.java:22)
> INFO o.a.l.Category [main] category test %C

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message