You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Nick Williams (JIRA)" <ji...@apache.org> on 2013/05/22 04:31:20 UTC

[jira] [Resolved] (LOG4J2-264) SetLoggerTag missing setter for value attribute (or tld wrongly requires value attribute for setLogger tag)

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

Nick Williams resolved LOG4J2-264.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0-beta7

Resolved with r1485032. Please verify and close.
                
> 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
>             Fix For: 2.0-beta7
>
>
> 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