More guidelines from the src:
http://www.slf4j.org/faq.html#logging_performance
I was thrilled reading "...the second form will outperform the first
form by a factor of at least 30..."
On 23/11/2012 15:18, Jonathan Ellis wrote:
I prefer the concise approach when no evaluation needs to be per
Agreed.
On Fri, Nov 23, 2012 at 11:17 AM, Dave Brosius wrote:
> There are actually 2 arguments the OP is making.. the second, using
>
> {} : {}
>
>
> over
>
>
> descriptor + ": " + (System.currentTimeMillis() - start)
>
> is reasonable.
>
>
>
> On 11/23/2012 10:18 AM, Jonathan Ellis wrote:
>>
>>
There are actually 2 arguments the OP is making.. the second, using
{} : {}
over
descriptor + ": " + (System.currentTimeMillis() - start)
is reasonable.
On 11/23/2012 10:18 AM, Jonathan Ellis wrote:
I prefer the concise approach when no evaluation needs to be performed
on the method argume
I prefer the concise approach when no evaluation needs to be performed
on the method arguments, but when it does I prefer the explicit
isDebugEnabled check, or else reviewers need to think each time they
see one, "is this a hot code path where we can afford to be sloppy, or
not?"
On Fri, Nov 23, 2
instead of this:
if (logger.isDebugEnabled())
logger.debug("INDEX LOAD TIME for " + descriptor + ": " +
(System.currentTimeMillis() - start) + " ms.");
do this:
logger.debug("INDEX LOAD TIME for {} : {} ms.", descriptor,
(System.currentTimeMillis() - start));
t; You can download it from here:
>>
>> http://www.java2s.com/Code/Jar/s/Downloadsnakeyamljar.htm
>>
>>
>>
>>
>>
>>
>> From: Thushan Ganegedara
>> To: dev@cassandra.apache.org
>> Sent: Tuesday, Mar
.com/Code/Jar/s/Downloadsnakeyamljar.htm
>
>
>
>
>
>
> From: Thushan Ganegedara
> To: dev@cassandra.apache.org
> Sent: Tuesday, March 13, 2012 9:40 AM
> Subject: Re: [Compile Error] java.lang.NoClassDefFoundError:
> org/slf4j/Logger
: [Compile Error] java.lang.NoClassDefFoundError:
org/slf4j/LoggerFactory
Hi Dave,
Thank you for the quick reply. I did the following
I put slf4j-api-1.6.1.jar and slf4j-log4j12-1.6.1.jar to my class path as
you suggested.
It presented me with another error
Failed to instantiate SLF4J LoggerFactory
Hi Dave,
Thank you for the quick reply. I did the following
I put slf4j-api-1.6.1.jar and slf4j-log4j12-1.6.1.jar to my class path as
you suggested.
It presented me with another error
Failed to instantiate SLF4J LoggerFactory
When I googled this I found the following post, though it'
You need to add slf4j-api-1.6.1.jar and slf4j-log4j12-1.6.1.jar to your
class path
You can also look at this page,
http://wiki.apache.org/cassandra/HowToDebug for another example of
setting up cassandra for debugging.
On 03/12/2012 09:47 PM, Thushan Ganegedara wrote:
Hi all,
I have
Hi all,
I have followed the instruction presented on
Running cassandra on Eclipse -
http://wiki.apache.org/cassandra/RunningCassandraInEclipse
But when I tried to compile the codebase it presented me with the following
error
java.lang.
NoClassDefFoundError: org/slf4j/LoggerFactory
at
11 matches
Mail list logo