|
From: Alex G. <ale...@ne...> - 2010-10-17 22:02:29
|
18.10.2010 00:12, rag007 kirjoitti:
> Hi All,
>
> I dont know where to locate the log4j jar for the purpose of logging in
> Jython Script.
Why don't you just read my previous email to you concerning jars on the
class path?
> I tried all these path
> 1. C:\Program Files\Java\jre1.6.0_03\lib\log4j-1.2.16.jar
> 2. C:\jython2.5.2b2\Lib\logging\log4j-1.2.16.jar
> 3. C:\jython2.5.2b2\extlib\log4j-1.2.16.jar
>
> This is my sample code
> test.py
> from org.apache.log4j import *
> logger = Logger.getLogger("test.py")
> PropertyConfigurator.configure("C:/jython/test/properties/log4j.properties")
> logger.info("Welcome")
>
> But I got this error like ImportError: No module named apache
>
> Please do needful help
>
> regards
> Rakesh
|