[
http://issues.ops4j.org/jira/browse/PAXLOGGING-17?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_10983
]
Niclas Hedhman commented on PAXLOGGING-17:
------------------------------------------
Ok, then sorry for my noise about MDC/NDC.
I am Ok to implement the method(s). However, the follow-up from someone will
probably be that the callerFQCN shouldn't be ignored. Let me check this, and do
so before the RC1 is released.
> NoSuchMethodError:
> org.apache.log4j.Logger.log(Ljava/lang/String;Lorg/apache/log4j/Priority;Ljava/lang/Object;Ljava/lang/Throwable;)V
> -------------------------------------------------------------------------------------------------------------------------------------
>
> Key: PAXLOGGING-17
> URL: http://issues.ops4j.org/jira/browse/PAXLOGGING-17
> Project: Pax Logging
> Issue Type: Bug
> Environment: pax logging 0.9.8, c3p0 0.9.1
> Reporter: Damian Golda
> Assignee: Niclas Hedhman
>
> Error while creating instance of com.mchange.v2.c3p0.ComboPooledDataSource:
> Instantiation of bean failed;
> Caused by: java.lang.NoSuchMethodError:
> org.apache.log4j.Logger.log(Ljava/lang/String;Lorg/apache/log4j/Priority;Ljava/lang/Object;Ljava/lang/Throwable;)V
>
> at com.mchange.v2.log.log4j.Log4jMLog$Log4jMLogger.log(Log4jMLog.java:159)
> at com.mchange.v2.log.log4j.Log4jMLog$Log4jMLogger.log(Log4jMLog.java:162)
> at com.mchange.v2.log.MLog.<clinit>(MLog.java:80)
> at
> com.mchange.v2.naming.JavaBeanReferenceMaker.<clinit>(JavaBeanReferenceMaker.java:39)
>
> at
> com.mchange.v2.c3p0.impl.PoolBackedDataSourceBase.<clinit>(PoolBackedDataSourceBase.java:203)
>
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> Log4jMLog:159:
> private void log(Level lvl, Object msg, Throwable t)
> { logger.log( FQCN, lvl, msg, t ); }
> where FQCN is String:
> final static String FQCN = Log4jMLogger.class.getName();
> So it is called:
> Category.log(String, Level, Object, Throwable) which is not present in Logger
> from pax-logging-api!!!
> This metod is still present in log4j 1.2.15:
> /**
> This is the most generic printing method. It is intended to be
> invoked by <b>wrapper</b> classes.
> @param callerFQCN The wrapper class' fully qualified class name.
> @param level The level of the logging request.
> @param message The message of the logging request.
> @param t The throwable of the logging request, may be null. */
> public
> void log(String callerFQCN, Priority level, Object message, Throwable t)
> So I think pax-logging must support it to be compatible with log4j.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.ops4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general