Logback in combination with slf4j: which versions should I use ?

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Logback in combination with slf4j: which versions should I use ?

stlecho
Hello,

With regards to the combination of logback-core and slf4j-api.
If I want to use v1.0.11 of logback-core, which version of slf4j-api should I use to avoid the getResourceOccurenceCount error ?

-logback-core v0.9.30 in combination with slf4j-api v1.6.3 works perfectly

-logback-core v1.0.11 in combination with slf4j-api v1.6.3 results in java.lang.NoSuchMethodError: ch.qos.logback.core.util.Loader.getResourceOccurenceCount(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/util/List;

-logback-core v1.0.11 in combination with slf4j-api v1.7.5 works perfectly result in java.lang.NoSuchMethodError: ch.qos.logback.core.util.Loader.getResourceOccurenceCount(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/util/List;

Regards, Stefan Lecho
Reply | Threaded
Open this post in threaded view
|

Re: Logback in combination with slf4j: which versions should I use ?

Robert Kuhar
I think you go to the heads:  SLF4J 1.7.5' and Logback 1.0.11'


On Fri, Mar 29, 2013 at 5:48 AM, stlecho <[hidden email]> wrote:
Hello,

With regards to the combination of logback-core and slf4j-api.
If I want to use v1.0.11 of logback-core, which version of slf4j-api should
I use to avoid the getResourceOccurenceCount error ?

-logback-core v0.9.30 in combination with slf4j-api v1.6.3 works perfectly

-logback-core v1.0.11 in combination with slf4j-api v1.6.3 results in
java.lang.NoSuchMethodError:
ch.qos.logback.core.util.Loader.getResourceOccurenceCount(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/util/List;

-logback-core v1.0.11 in combination with slf4j-api v1.7.5 works perfectly
result in java.lang.NoSuchMethodError:
ch.qos.logback.core.util.Loader.getResourceOccurenceCount(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/util/List;

Regards, Stefan Lecho



--
View this message in context: http://logback.10977.n7.nabble.com/Logback-in-combination-with-slf4j-which-versions-should-I-use-tp11694.html
Sent from the Users mailing list archive at Nabble.com.
_______________________________________________
Logback-user mailing list
[hidden email]
http://mailman.qos.ch/mailman/listinfo/logback-user


_______________________________________________
Logback-user mailing list
[hidden email]
http://mailman.qos.ch/mailman/listinfo/logback-user
Reply | Threaded
Open this post in threaded view
|

Re: Logback in combination with slf4j: which versions should I use ?

stlecho
Robert, the combination you're suggesting unfortunately results in java.lang.NoSuchMethodError:
ch.qos.logback.core.util.
Loader.getResourceOccurenceCount(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/util/List;

On Fri, Mar 29, 2013 at 3:41 PM, Robert Kuhar [via Logback] <[hidden email]> wrote:
I think you go to the heads:  SLF4J 1.7.5' and Logback 1.0.11'


On Fri, Mar 29, 2013 at 5:48 AM, stlecho <[hidden email]> wrote:
Hello,

With regards to the combination of logback-core and slf4j-api.
If I want to use v1.0.11 of logback-core, which version of slf4j-api should
I use to avoid the getResourceOccurenceCount error ?

-logback-core v0.9.30 in combination with slf4j-api v1.6.3 works perfectly

-logback-core v1.0.11 in combination with slf4j-api v1.6.3 results in
java.lang.NoSuchMethodError:
ch.qos.logback.core.util.Loader.getResourceOccurenceCount(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/util/List;

-logback-core v1.0.11 in combination with slf4j-api v1.7.5 works perfectly
result in java.lang.NoSuchMethodError:
ch.qos.logback.core.util.Loader.getResourceOccurenceCount(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/util/List;

Regards, Stefan Lecho



--
View this message in context: http://logback.10977.n7.nabble.com/Logback-in-combination-with-slf4j-which-versions-should-I-use-tp11694.html
Sent from the Users mailing list archive at Nabble.com.
_______________________________________________
Logback-user mailing list
[hidden email]
http://mailman.qos.ch/mailman/listinfo/logback-user


_______________________________________________
Logback-user mailing list
[hidden email]
http://mailman.qos.ch/mailman/listinfo/logback-user


If you reply to this email, your message will be added to the discussion below:
http://logback.10977.n7.nabble.com/Logback-in-combination-with-slf4j-which-versions-should-I-use-tp11694p11695.html
To unsubscribe from Logback in combination with slf4j: which versions should I use ?, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: Logback in combination with slf4j: which versions should I use ?

Abraham Lin


On Fri, Mar 29, 2013 at 11:38 AM, stlecho <[hidden email]> wrote:
Robert, the combination you're suggesting unfortunately results in java.lang.NoSuchMethodError:
ch.qos.logback.core.util.
Loader.getResourceOccurenceCount(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/util/List;

On Fri, Mar 29, 2013 at 3:41 PM, Robert Kuhar [via Logback] <[hidden email]> wrote:
I think you go to the heads:  SLF4J 1.7.5' and Logback 1.0.11'


On Fri, Mar 29, 2013 at 5:48 AM, stlecho <[hidden email]> wrote:
Hello,

With regards to the combination of logback-core and slf4j-api.
If I want to use v1.0.11 of logback-core, which version of slf4j-api should
I use to avoid the getResourceOccurenceCount error ?

-logback-core v0.9.30 in combination with slf4j-api v1.6.3 works perfectly

-logback-core v1.0.11 in combination with slf4j-api v1.6.3 results in
java.lang.NoSuchMethodError:
ch.qos.logback.core.util.Loader.getResourceOccurenceCount(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/util/List;

-logback-core v1.0.11 in combination with slf4j-api v1.7.5 works perfectly
result in java.lang.NoSuchMethodError:
ch.qos.logback.core.util.Loader.getResourceOccurenceCount(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/util/List;

Regards, Stefan Lecho



--
View this message in context: http://logback.10977.n7.nabble.com/Logback-in-combination-with-slf4j-which-versions-should-I-use-tp11694.html
Sent from the Users mailing list archive at Nabble.com.
_______________________________________________
Logback-user mailing list
[hidden email]
http://mailman.qos.ch/mailman/listinfo/logback-user


_______________________________________________
Logback-user mailing list
[hidden email]
http://mailman.qos.ch/mailman/listinfo/logback-user


If you reply to this email, your message will be added to the discussion below:
http://logback.10977.n7.nabble.com/Logback-in-combination-with-slf4j-which-versions-should-I-use-tp11694p11695.html
To unsubscribe from Logback in combination with slf4j: which versions should I use ?, click here.
NAML



View this message in context: Re: Logback in combination with slf4j: which versions should I use ?

Sent from the Users mailing list archive at Nabble.com.

_______________________________________________
Logback-user mailing list
[hidden email]
http://mailman.qos.ch/mailman/listinfo/logback-user


_______________________________________________
Logback-user mailing list
[hidden email]
http://mailman.qos.ch/mailman/listinfo/logback-user
Reply | Threaded
Open this post in threaded view
|

Re: Logback in combination with slf4j: which versions should I use ?

Robert Kuhar
Hmmm.  It's working for me, somehow.  I don't explicitly call getResourceOccurrenceCount() ever, so maybe I don't stumble upon this?  On the other hand, I put a breakpoint in there and I do fly through this method when my app starts up.  Strange.

Bob


On Fri, Mar 29, 2013 at 8:44 AM, Abraham Lin <[hidden email]> wrote:


On Fri, Mar 29, 2013 at 11:38 AM, stlecho <[hidden email]> wrote:
Robert, the combination you're suggesting unfortunately results in java.lang.NoSuchMethodError:
ch.qos.logback.core.util.
Loader.getResourceOccurenceCount(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/util/List;

On Fri, Mar 29, 2013 at 3:41 PM, Robert Kuhar [via Logback] <[hidden email]> wrote:
I think you go to the heads:  SLF4J 1.7.5' and Logback 1.0.11'


On Fri, Mar 29, 2013 at 5:48 AM, stlecho <[hidden email]> wrote:
Hello,

With regards to the combination of logback-core and slf4j-api.
If I want to use v1.0.11 of logback-core, which version of slf4j-api should
I use to avoid the getResourceOccurenceCount error ?

-logback-core v0.9.30 in combination with slf4j-api v1.6.3 works perfectly

-logback-core v1.0.11 in combination with slf4j-api v1.6.3 results in
java.lang.NoSuchMethodError:
ch.qos.logback.core.util.Loader.getResourceOccurenceCount(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/util/List;

-logback-core v1.0.11 in combination with slf4j-api v1.7.5 works perfectly
result in java.lang.NoSuchMethodError:
ch.qos.logback.core.util.Loader.getResourceOccurenceCount(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/util/List;

Regards, Stefan Lecho



--
View this message in context: http://logback.10977.n7.nabble.com/Logback-in-combination-with-slf4j-which-versions-should-I-use-tp11694.html
Sent from the Users mailing list archive at Nabble.com.
_______________________________________________
Logback-user mailing list
[hidden email]
http://mailman.qos.ch/mailman/listinfo/logback-user


_______________________________________________
Logback-user mailing list
[hidden email]
http://mailman.qos.ch/mailman/listinfo/logback-user


If you reply to this email, your message will be added to the discussion below:
http://logback.10977.n7.nabble.com/Logback-in-combination-with-slf4j-which-versions-should-I-use-tp11694p11695.html
To unsubscribe from Logback in combination with slf4j: which versions should I use ?, click here.
NAML



View this message in context: Re: Logback in combination with slf4j: which versions should I use ?

Sent from the Users mailing list archive at Nabble.com.

_______________________________________________
Logback-user mailing list
[hidden email]
http://mailman.qos.ch/mailman/listinfo/logback-user


_______________________________________________
Logback-user mailing list
[hidden email]
http://mailman.qos.ch/mailman/listinfo/logback-user


_______________________________________________
Logback-user mailing list
[hidden email]
http://mailman.qos.ch/mailman/listinfo/logback-user
Reply | Threaded
Open this post in threaded view
|

Re: Logback in combination with slf4j: which versions should I use ?

stlecho
In reply to this post by Abraham Lin
When using the suggested combination - logback-core v1.0.11 and slf4j-api v1.7.4 - I'm still getting the same error message: java.lang.NoSuchMethodError:
ch.qos.logback.core.util.
Loader.getResourceOccurenceCount(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/util/List;



On Fri, Mar 29, 2013 at 4:45 PM, Abraham Lin [via Logback] <[hidden email]> wrote:


On Fri, Mar 29, 2013 at 11:38 AM, stlecho <[hidden email]> wrote:
Robert, the combination you're suggesting unfortunately results in java.lang.NoSuchMethodError:
ch.qos.logback.core.util.
Loader.getResourceOccurenceCount(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/util/List;

On Fri, Mar 29, 2013 at 3:41 PM, Robert Kuhar [via Logback] <[hidden email]> wrote:
I think you go to the heads:  SLF4J 1.7.5' and Logback 1.0.11'


On Fri, Mar 29, 2013 at 5:48 AM, stlecho <[hidden email]> wrote:
Hello,

With regards to the combination of logback-core and slf4j-api.
If I want to use v1.0.11 of logback-core, which version of slf4j-api should
I use to avoid the getResourceOccurenceCount error ?

-logback-core v0.9.30 in combination with slf4j-api v1.6.3 works perfectly

-logback-core v1.0.11 in combination with slf4j-api v1.6.3 results in
java.lang.NoSuchMethodError:
ch.qos.logback.core.util.Loader.getResourceOccurenceCount(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/util/List;

-logback-core v1.0.11 in combination with slf4j-api v1.7.5 works perfectly
result in java.lang.NoSuchMethodError:
ch.qos.logback.core.util.Loader.getResourceOccurenceCount(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/util/List;

Regards, Stefan Lecho



--
View this message in context: http://logback.10977.n7.nabble.com/Logback-in-combination-with-slf4j-which-versions-should-I-use-tp11694.html
Sent from the Users mailing list archive at Nabble.com.
_______________________________________________
Logback-user mailing list
[hidden email]
http://mailman.qos.ch/mailman/listinfo/logback-user


_______________________________________________
Logback-user mailing list
[hidden email]
http://mailman.qos.ch/mailman/listinfo/logback-user


If you reply to this email, your message will be added to the discussion below:
http://logback.10977.n7.nabble.com/Logback-in-combination-with-slf4j-which-versions-should-I-use-tp11694p11695.html
To unsubscribe from Logback in combination with slf4j: which versions should I use ?, click here.
NAML



View this message in context: Re: Logback in combination with slf4j: which versions should I use ?

Sent from the Users mailing list archive at Nabble.com.

_______________________________________________
Logback-user mailing list
[hidden email]
http://mailman.qos.ch/mailman/listinfo/logback-user


_______________________________________________
Logback-user mailing list
[hidden email]
http://mailman.qos.ch/mailman/listinfo/logback-user


If you reply to this email, your message will be added to the discussion below:
http://logback.10977.n7.nabble.com/Logback-in-combination-with-slf4j-which-versions-should-I-use-tp11694p11697.html
To unsubscribe from Logback in combination with slf4j: which versions should I use ?, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: Logback in combination with slf4j: which versions should I use ?

Ceki Gulcu

Hi Stefan,

In addition to slf4j-api, you need logback-classic.jar and
logback-core.jar for "classic" (developer) logging. It looks like you
are using an older version of logback-classic. Make sure that the
version of logback-classic mathes that of logback-core.

HTH,

On 08.04.2013 10:16, stlecho wrote:

> When using the suggested combination - /logback-core v1.0.11 and
> slf4j-api v1.7.4/ - I'm still getting the same error message:
> /java.lang.NoSuchMethodError:
> ch.qos.logback.core.util.Loader.getResourceOccurenceCount(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/util/List;/
>
>
> On Fri, Mar 29, 2013 at 4:45 PM, Abraham Lin [via Logback] <[hidden
> email] </user/SendEmail.jtp?type=node&node=11777&i=0>> wrote:
>
>     Logback 1.0.11 is built against version 1.7.4 of SLF4J:
>     http://search.maven.org/remotecontent?filepath=ch/qos/logback/logback-parent/1.0.11/logback-parent-1.0.11.pom
>
>
>     On Fri, Mar 29, 2013 at 11:38 AM, stlecho <[hidden email]
>     <http://user/SendEmail.jtp?type=node&node=11697&i=0>> wrote:
>
>         Robert, the combination you're suggesting unfortunately results
>         in java.lang.NoSuchMethodError:
>         ch.qos.logback.core.util.Loader.getResourceOccurenceCount(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/util/List;
>
>         On Fri, Mar 29, 2013 at 3:41 PM, Robert Kuhar [via Logback]
>         <[hidden email]
>         <http://user/SendEmail.jtp?type=node&node=11696&i=0>> wrote:
>
>             I think you go to the heads:  SLF4J 1.7.5' and Logback 1.0.11'
>
>
>             On Fri, Mar 29, 2013 at 5:48 AM, stlecho <[hidden email]
>             <http://user/SendEmail.jtp?type=node&node=11695&i=0>> wrote:
>
>                 Hello,
>
>                 With regards to the combination of logback-core and
>                 slf4j-api.
>                 If I want to use v1.0.11 of logback-core, which version
>                 of slf4j-api should
>                 I use to avoid the getResourceOccurenceCount error ?
>
>                 -logback-core v0.9.30 in combination with slf4j-api
>                 v1.6.3 works perfectly
>
>                 -logback-core v1.0.11 in combination with slf4j-api
>                 v1.6.3 results in
>                 java.lang.NoSuchMethodError:
>                 ch.qos.logback.core.util.Loader.getResourceOccurenceCount(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/util/List;
>
>                 -logback-core v1.0.11 in combination with slf4j-api
>                 v1.7.5 works perfectly
>                 result in java.lang.NoSuchMethodError:
>                 ch.qos.logback.core.util.Loader.getResourceOccurenceCount(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/util/List;
>
>                 Regards, Stefan Lecho
>


--
Ceki
65% of statistics are made up on the spot
_______________________________________________
Logback-user mailing list
[hidden email]
http://mailman.qos.ch/mailman/listinfo/logback-user