On Wed, 23 Feb 2005 02:51:49 -0800, Jmeter Dev
<[EMAIL PROTECTED]> wrote:
> After I found out that JMeter does not support Log4J (guys, you can
> omit the log4j.conf file. it just confuse us, users), I'm trying to add

It is still required, as far as I know. It's just not used in earnest.
Besides, it we are to add log4j support, it will be needed again.

> this support by mayself.

Why?

If you do want to add log4j support, it should be done via Commons
Logging, not directly, because then users can actually change the
logging package very easily.

Migrating to Commons Logging is on my TODO (one day) list ...

Apache HTTPClient uses Commons Logging, so all the jars are present anyway.

> 
> After importing org.apache.log4j.Logger and writing something like:
> protected static Logger myLog =
> Logger.getLogger(MyClass.class.getName());
> I'm getting this exception during runtime:
> java.lang.NoClassDefFoundError: org/apache/log4j/Logger
>         at expansion.extractor.MyClass.<clinit>(MyClass.java:25)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Unknown Source)
> 
> any ideas?
> Thanks.
> --
>   Jmeter Dev
>   [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to