portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Woonsan Ko (JIRA)" <jetspeed-...@portals.apache.org>
Subject [jira] [Reopened] (JS2-1254) Logging locations are hidden with JetspeedLoggerUtil or DefaultJetspeedLogger
Date Sat, 23 Jul 2011 03:07:09 GMT

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

Woonsan Ko reopened JS2-1254:
-----------------------------


The Slf4j SPI interface, LocationAwareLogger, has been slightly changed since 1.6.x.
So, the wrappers should care the changes as well.

public void log(Marker marker, String fqcn, int level, String message, Throwable 
t);
==>
public void log(Marker marker, String fqcn, int level, String message, Object[] 
argArray, Throwable t) 


> Logging locations are hidden with JetspeedLoggerUtil or DefaultJetspeedLogger
> -----------------------------------------------------------------------------
>
>                 Key: JS2-1254
>                 URL: https://issues.apache.org/jira/browse/JS2-1254
>             Project: Jetspeed 2
>          Issue Type: Improvement
>          Components: Container
>    Affects Versions: 2.2.1
>            Reporter: Woonsan Ko
>            Assignee: Woonsan Ko
>             Fix For: 2.2.2
>
>
> Jetspeed provides a neutral logger factory and interface for commons components such
as JetspeedContainerServlet.
> Those common components cannot access slf4j library directly, so we have provided a wrapper
implementation as a component.
> However, with those wrapper logger implementations, the logging locations such as class
name and operation name are not recorded properly. Instead of the real logging locations,
it prints the wrapper's operation locations.
> This can be fixed by using the Slf4j SPI interface, LocatonAwareLogger [1], in the wrapper
classes,
> or by extending slf4j-ext's LoggerWrapper class [2].
> [1] http://www.slf4j.org/api/org/slf4j/spi/LocationAwareLogger.html
> [2] http://www.slf4j.org/api/org/slf4j/ext/LoggerWrapper.html

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

        

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


Mime
View raw message