on 02-20-2006 5:11 AM
Hi All,
I had checked with the sample Log 4j application avialble in the SDN . But it was integrated with the SAP logging framework.
We wanted to use only log 4j without integrating with the SAP logging f.w. . Wanted to know that is this possible with WAS . If yes how do we do that ?
regards
rajesh kr
Rajesh,
You can implement it in the same way as with any other J2EE app server, include the Log4j jar in your classpath and either deploy in /libs in your .war/.ear or deploy to the J2EE Engine filesystem to somewhere like :
\usr\sap\xxx\JCxx\j2ee\cluster\server0\bin\ext
I dont know if the SAP remote logviewer can be configured to open files generated by log4j by default, but I would guess you could configure log4j to output in a standard format that was compatible.
Cheers,
Steve
Message was edited by: Steve Archer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Rajesh,
We had the exact same issue. The answer depends on whether you're using Tracks and Development Components (DC) or not.
If you're using Tracks then one way you can do it is to create a DC of type "External Library", expose the log4j packages as Public Part and then create a Used DC in the DC where you want to use log4j.
Having done J2EE programming in a non-SAP environment for several years this seems a little convoluted but it works.
Please let me know if you need more details and I'll be glad to provide more.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.