[jboss-jira] [JBoss JIRA] Resolved: (LOGTOOL-12) Generated classes should be using a different logger method
James Perkins (JIRA)
jira-events at lists.jboss.org
Wed Mar 30 10:20:37 EDT 2011
[ https://issues.jboss.org/browse/LOGTOOL-12?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Perkins resolved LOGTOOL-12.
----------------------------------
Resolution: Done
Changed to use new logger method. https://github.com/jamezp/jboss-logging-tools/commit/be4b83a5233043136aa358556e1002be30747cdc
> Generated classes should be using a different logger method
> -----------------------------------------------------------
>
> Key: LOGTOOL-12
> URL: https://issues.jboss.org/browse/LOGTOOL-12
> Project: Log Tool
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Reporter: David Lloyd
> Assignee: James Perkins
> Fix For: 1.0.0.Beta6
>
>
> Right now the generated classes are using the errorf/warnf/etc. methods. However using these methods causes an incorrectly-reported source file name/line number/class name/method name in logs which use these formats.
> Instead, the logf and logv methods should be used. Specifically, this form:
> {noformat}
> logger.logf(FQCN, Level.INFO, cause, format, param1, param2, ...);
> {noformat}
> The FCQN should be a "private static final String" field defined in each logger class and initialized to "LoggerClassName.class.getName()". Be sure to import the org.jboss.logging.Logger.Level class either directly or use it via Logger.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list