logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Williams (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4J2-264) SetLoggerTag missing setter for value attribute (or tld wrongly requires value attribute for setLogger tag)
Date Wed, 22 May 2013 02:23:20 GMT

    [ https://issues.apache.org/jira/browse/LOG4J2-264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13663694#comment-13663694
] 

Nick Williams commented on LOG4J2-264:
--------------------------------------

Note: The maven-taglib-plugin is _supposed_ to flag issues like this. However, the generated
report is all green checkboxes. It does not flag the fact that the attribute does not have
a setter. I have filed http://jira.openmindlab.com/browse/MAVENTAGLIB-16 about this.

Also, I have filed a featured request for the maven-taglib-plugin to be able to run it at
compile time and fail the build if validation fails. http://jira.openmindlab.com/browse/MAVENTAGLIB-17
                
> SetLoggerTag missing setter for value attribute (or tld wrongly requires value attribute
for setLogger tag) 
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: LOG4J2-264
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-264
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Taglib
>    Affects Versions: 2.0-beta6
>            Reporter: Jon Archer
>            Assignee: Nick Williams
>
> I have the taglib imported thus:
> {{<%@ taglib uri="http://logging.apache.org/log4j/tld/log" prefix="log" %>}}
> and then tried to use {{setLogger}} as follows:
> {{<log:setLogger value="com.example.jsp.errors" />}}
> but this results in the following:
> {{Exception caught in jsp}}
> {{org.apache.jasper.JasperException: /WEB-INF/pages/orderform/error.jsp(13,0) Unable
to find setter method for attribute: value}}
> {{... etc.}}
> Had a quick nose around and the {{value}} attribute is marked as required in the tld,
but the {{SetLoggerTag}} class _doesn't_ have a {{setValue(...)}} method...
> From what I saw, wondered if in fact the {{value}} attribute is meant to have gone away
and one should be using the {{logger}} attribute which is there in the class, but has no mention
in the tld.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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