You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@whirr.apache.org by Alex Heneveld <Al...@CloudsoftCorp.com> on 2011/12/14 17:46:15 UTC

Re: [VOTE] Release Whirr version 0.7.0 - logging

Andrei-

I'm thinking we need to add <scope>runtime</scope> to the slf4j-log4j12 
dependency in cli/pom.xml.  Am testing it now.

My reasoning:  most of the poms rightly give <scope>test</scope> to that 
logging-implementation dependency.  However cli (and example) give it 
the default scope which is "compile" which works fine until we combine 
it.  In the presence of multiple scopes, "test" seems to trump "compile" 
(surprisingly to me).  "runtime" however trumps both.  This according to 
[1].

Best
Alex

[1]  
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope


On 13/12/2011 20:42, Andrei Savu wrote:
> Unfortunately I am not happy with the binary release. Is anyone else having
> CLI logging issues?
> It should be something easy to fix.
>
> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> SLF4J: Defaulting to no-operation (NOP) logger implementation
> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further
> details.
>


Re: [VOTE] Release Whirr version 0.7.0 - logging

Posted by Adrian Cole <ad...@jclouds.org>.
+1 in the case of the cli, choosing a specific slf4j impl makes sense,
and it should be consistent between test and runtime

On Wed, Dec 14, 2011 at 8:46 AM, Alex Heneveld
<Al...@cloudsoftcorp.com> wrote:
>
> Andrei-
>
> I'm thinking we need to add <scope>runtime</scope> to the slf4j-log4j12
> dependency in cli/pom.xml.  Am testing it now.
>
> My reasoning:  most of the poms rightly give <scope>test</scope> to that
> logging-implementation dependency.  However cli (and example) give it the
> default scope which is "compile" which works fine until we combine it.  In
> the presence of multiple scopes, "test" seems to trump "compile"
> (surprisingly to me).  "runtime" however trumps both.  This according to
> [1].
>
> Best
> Alex
>
> [1]
>  http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope
>
>
> On 13/12/2011 20:42, Andrei Savu wrote:
>>
>> Unfortunately I am not happy with the binary release. Is anyone else
>> having
>> CLI logging issues?
>> It should be something easy to fix.
>>
>> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
>> SLF4J: Defaulting to no-operation (NOP) logger implementation
>> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further
>> details.
>>
>