geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarek Gawor (JIRA)" <j...@apache.org>
Subject [jira] Commented: (GERONIMO-3849) When display-name in web.xml contains the dot the remaining part's printed out in geronimo.log
Date Thu, 14 Feb 2008 05:21:11 GMT

    [ https://issues.apache.org/jira/browse/GERONIMO-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12568798#action_12568798
] 

Jarek Gawor commented on GERONIMO-3849:
---------------------------------------

This is tied to the logging configuration.

If you look at server-log4j.properties file, the file appender is configured with the following
conversion pattern:

log4j.appender.FILE.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c{1}] %m%n

The data displayed in between [ ] is configured as %c{1}. The following page explains what
that means and how that data is interpreted and displayed: http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PatternLayout.html.


Usually the category name (logger name) for the logger is the package name but looks like
in this case the display-name is used as the logger name. That explains why the message looks
this way. 

I'm not sure which code creates a logger with a display name instead of the package name.


You should get the full text by changing the %c{1} to %c. 


> When display-name in web.xml contains the dot the remaining part's printed out in geronimo.log
> ----------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-3849
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3849
>             Project: Geronimo
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: Logging
>    Affects Versions: 2.1
>            Reporter: Jacek Laskowski
>
> I'm not certain it applied to Geronimo or MyFaces 1.2.2 which is bundled in Geronimo
2.1.
> When display-name in web.xml is as follows:
> <display-name>Witaj Geronimo z JavaServer Faces 1.2 i Apache Maven 2</display-name>
> only the part after the dot's printed out:
> 20:39:29,828 INFO  [2 i Apache Maven 2] No state saving method defined, assuming default
server state saving
> whereas when it's as follows:
> <display-name>Witaj Geronimo z JavaServer Faces 1_2 i Apache Maven 2</display-name>
> then it's printed out fully:
> 20:44:34,312 INFO  [Witaj Geronimo z JavaServer Faces 1_2 i Apache Maven 2] No state
saving method defined, assuming default server state saving

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message