make Weblogic61 log with LOG4J (the quick way).
http://www.intellij.org/twiki/pub/Main/LogMonitorPlugin/weblog4j.zip
the readme.txt
HOWTO MAKE WEBLOGIC61 LOG WITH LOG4J (the quick way).
this little jar contains one class, which basically patches/replaces the
weblogic ConsoleLogger to use log4j instead of the internal logging
mechanism.
1. add this jar in your weblogic classpath BEFORE weblogic.jar
2. add log4j.jar to your weblogic classpath
3. put -Dlog4j.configuration=config\YOURSERVER\log4j.properties on the
weblogic commandline
4. start weblogic
example log4j.properties:
log4j.rootLogger=DEBUG, CHAINSAW_CLIENT
log4j.appender.CHAINSAW_CLIENT=org.apache.log4j.net.SocketAppender
: or use the following line to make use of the extended features of the
log4jmonitor idea plugin
:
log4j.appender.CHAINSAW_CLIENT=com.webspherious.intellij.log4jmonitor.log4j.IntelliJAppender
log4j.appender.CHAINSAW_CLIENT.RemoteHost=localhost
log4j.appender.CHAINSAW_CLIENT.Port=4445
log4j.appender.CHAINSAW_CLIENT.LocationInfo=true
Please sign in to leave a comment.
In Tomcat it work too.
For Tomcat 3.x.x it was in FAQ, for Tomcat 4.x.x - in FAQ not info about it,
but it works too.
--
Alexey Efimov, Software Engineer
Sputnik Labs,
http://www.spklabs.com
"Aiko Mastboom" <intellij@aiko.sh> wrote in message
news:ak3fnf$s4g$1@is.intellij.net...
>
>
>
>
>
>
>
>
>
log4j.appender.CHAINSAW_CLIENT=com.webspherious.intellij.log4jmonitor.log4j.
IntelliJAppender
>