[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3895) org.jboss.seam.log.Logging.getLogProvider(String,boolean) should be made public

Julien Kronegg (JIRA) jira-events at lists.jboss.org
Fri Jan 16 03:21:03 EST 2009


org.jboss.seam.log.Logging.getLogProvider(String,boolean) should be made public
-------------------------------------------------------------------------------

                 Key: JBSEAM-3895
                 URL: https://jira.jboss.org/jira/browse/JBSEAM-3895
             Project: Seam
          Issue Type: Feature Request
          Components: Core
    Affects Versions: 2.1.1.GA, 2.0.0.GA
         Environment: environment independent feature
            Reporter: Julien Kronegg
            Priority: Minor


We would like to create our own implementation of the org.jboss.seam.log.Log interface, like it is done in the org.jboss.seam.log.LogImpl class. The goal is to enrich the log message by adding some information.

Because the org.jboss.seam.log.Logging.getLogProvider(String,boolean) method has a default access mode, it is only callable from a class in the same package (which is the case for LogImpl).

So the feature request is: please make the org.jboss.seam.log.Logging.getLogProvider(String,boolean) method as public.

The workaround is to call the method by introspection:

  Method m = Logging.class.getDeclaredMethod("getLogProvider", new Class[] {String.class, boolean.class});
  m.setAccessible(true);
  LogProvider log = (LogProvider)m.invoke(null, new Object[] {category, wrapped});


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list