You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Rich Scheuerle (JIRA)" <ji...@apache.org> on 2010/02/10 03:16:28 UTC
[jira] Resolved: (AXIS2-4620) Adding OnDemandLogger to allow the
LogFactory lookup to occur on first touch versus during static class
initialization
[ https://issues.apache.org/jira/browse/AXIS2-4620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rich Scheuerle resolved AXIS2-4620.
-----------------------------------
Resolution: Fixed
> Adding OnDemandLogger to allow the LogFactory lookup to occur on first touch versus during static class initialization
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-4620
> URL: https://issues.apache.org/jira/browse/AXIS2-4620
> Project: Axis2
> Issue Type: Bug
> Components: kernel
> Reporter: Rich Scheuerle
> Assignee: Rich Scheuerle
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> Problem:
> In most classes, the Log and LogFactory are statically declared (example AxisServlet). This causes the Log to be discovered and loaded during the class loading, which can be expensive.
> If Axis2 is embedded, the wrong Log may be calculated (i.e. it may get the Log associated with the static loading versus the Log associated with the application's classloader).
> Solution:
> Adding a OnDemandLogger object will defer the Log construction until the Log is needed. This solution was proposed by Nikhil Thaker and Muhammad Sadiq.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.