New plugin: log4jmonitor
http://www.intellij.org/twiki/bin/view/Main/LogMonitorPlugin
A plugin for monitoring log events generated by log4j of applications
running outside intellij.
Including links to the sources ala the stacktrace of intellij.
Please let me know what you think,
Maarten Grootendorst
请先登录再写评论。
Looks great. Thanks a lot.
I hope it will work :)
Johannes Schneider
Hmm, at the moment I am not able to get it running. Could u explain, how I
may connect to a server?
Johannes Schneider
Ok, got it.
Thanks :)
Johannes Schneider
Every time a new logging-message occures - this exception is throwed in
Idea (many, many, many times).
Johannes Schneider
2002-08-19 09:16:54,954 ERROR - plication.impl.ApplicationImpl
- Read access is allowed from event dispat
hread or inside read-action only (see
com.intellij.openapi.application.Application.runReadAction())
2002-08-19 09:16:54,954 ERROR - plication.impl.ApplicationImpl
- IntelliJ IDEA (Ariadna) 3.0 Build #640
2002-08-19 09:16:54,954 ERROR - plication.impl.ApplicationImpl
- JDK: 1.4.0_01
2002-08-19 09:16:54,954 ERROR - plication.impl.ApplicationImpl
- VM: Java HotSpot(TM) Client VM
2002-08-19 09:16:54,954 ERROR - plication.impl.ApplicationImpl
- Vendor: Sun Microsystems Inc.
2002-08-19 09:16:54,954 ERROR - plication.impl.ApplicationImpl
- OS: Windows 2000
2002-08-19 09:16:54,954 ERROR - plication.impl.ApplicationImpl
-
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:35)
at com.intellij.openapi.application.a.d.assertReadAccessAllowed
(d.java:219)
at com.intellij.openapi.vfs.a.a.ba.getChildren(ba.java:15)
at com.intellij.openapi.vfs.VirtualFile.findChild
(VirtualFile.java:53)
at com.intellij.openapi.vfs.a.a.bb.a(bb.java:73)
at com.intellij.openapi.vfs.a.a.bb.findFileByPath(bb.java:176)
at
com.webspherious.intellij.log4jmonitor.SimpleToolWindowPlugin.exists
(SimpleToolWindowPlugin.java:99)
at com.webspherious.intellij.log4jmonitor.DetailPanel.toLink
(DetailPanel.java:172)
at com.webspherious.intellij.log4jmonitor.DetailPanel.toLink
(DetailPanel.java:191)
at
com.webspherious.intellij.log4jmonitor.DetailPanel.valueChanged
(DetailPanel.java:120)
at javax.swing.DefaultListSelectionModel.fireValueChanged
(DefaultListSelectionModel.java:187)
at javax.swing.DefaultListSelectionModel.fireValueChanged
(DefaultListSelectionModel.java:167)
at javax.swing.DefaultListSelectionModel.fireValueChanged
(DefaultListSelectionModel.java:214)
at javax.swing.DefaultListSelectionModel.insertIndexInterval
(DefaultListSelectionModel.java:522)
at javax.swing.JTable.tableRowsInserted(JTable.java:2911)
at javax.swing.JTable.tableChanged(JTable.java:2847)
at javax.swing.table.AbstractTableModel.fireTableChanged
(AbstractTableModel.java:280)
at javax.swing.table.AbstractTableModel.fireTableRowsInserted
(AbstractTableModel.java:215)
at
com.webspherious.intellij.log4jmonitor.log4j.MyTableModel.updateFilteredE
vents(MyTableModel.java:346)
at
com.webspherious.intellij.log4jmonitor.log4j.MyTableModel.access$500
(MyTableModel.java:34)
at com.webspherious.intellij.log4jmonitor.log4j.MyTableModel
$Processor.run(MyTableModel.java:96)
at java.lang.Thread.run(Thread.java:536)
What version of IntelliJ are you using?
Did you download the latest version of the plugin, uploaded yesterday?
Maarten
"Johannes Schneider" <shake@web.de> wrote in message
news:Xns926F5EB75775Fshakeatwebde@213.182.181.98...
>
>
>
>
>
640 (of course :)
Downloaded it today...
Johannes Schneider
Maarten
If you download the latest version the problems mentioned here are solved (I
hope..), although I have no influence on the number of messages generated by
intellij.
I am thinking about filtering out (optional ) all messages generated by
intellij.
Maarten
http://www.intellij.org/twiki/bin/view/Main/LogMonitorPlugin
"Johannes Schneider" <shake@web.de> wrote in message
news:Xns926F75D9FDDF7shakeatwebde@213.182.181.98...
>
>
>
>
>
>
Hi,
Great idea but It just won't find the driver I give. From where does the
plugin try to find the driver ? Ie. which classpath does it use ?
I have the db driver in my projects classpath and I have tried copying the
driver to where the plugin is located without luck.
Idea 639 and the newest plugin.
Regards
Anders
"Maarten Grootendorst" <intellij@xs4all.nl> skrev i en meddelelse
news:ajlmt9$kal$1@is.intellij.net...
>
>
>
>
>
>
You should add the .jar to the classpath manually. Take a look into the
startscript of idea.
Johannes Schneider
Hi,
thx. That works.
But when double clicking the new datasource I just get the following:
Error during dispathing of
java.awt.event.MouseEvent/MOUSE_CLICKED,(657,144),button=1,modifiers=Button1
,clickcount=2] on frame0.
When trying to do a ad hoc query I get the same error when clicking the run
query button (just with clickcount=1).
What am I missing here ?
Regards
Anders
"Johannes Schneider" <shake@web.de> skrev i en meddelelse
news:Xns927059EA33AAEshakeatwebde@213.182.181.98...
>
>
Without the Stacktrace nobody will be able to help you...
Check
%IDEA_HOME%/system/log/idea.log
Johannes Schneider