Log4jMonitor issue: new line characters in messages

When the message for a given log entry is displayed by Log4jMonitor in
the "details" window, the whole message is displayed on one line, even
is the string contains new line characters.

I guess this not really a bug, but more like a feature or a different
behavior: I think it would be nice if new line characters were not
eaten when displaying the message. BTW, Chainsaw does respect new line
characters when displaying messages.

Alex

6 comments

Hi Alex,

Indeed there are some issues with the details window.
- the scrolpane doesn't behave as it should (sometimes it shows 2 scrollbars)
- then on resize it loses the linebreaks.

I'll have a look at it..

thanks for using/trying the plugin

Aiko


Alessandro Vernet wrote:

When the message for a given log entry is displayed by Log4jMonitor in
the "details" window, the whole message is displayed on one line, even
is the string contains new line characters.

I guess this not really a bug, but more like a feature or a different
behavior: I think it would be nice if new line characters were not eaten
when displaying the message. BTW, Chainsaw does respect new line
characters when displaying messages.

Alex

0

Aiko,

I am using Log4jMonitor 0.9.3 with Pallada build 2008.

The attached screen shot shows a problem with the tree view function of
enabling and disabling of categories. I am primarily using package names as
catagories. As you can see I have log messages coming in with a catagory of
us.nc.state.enr.ust, but since I also have messages with subcatagories (as
shown in the tree), the checkbox for that catagory is not displayed in the
tree so I cannot disable the display of those log messages.

Also, being new to Log4j, could you give me a brief explaination as to why
my Machine would be labeled "Unknown:-1" and what the NDC column is for?

Thanks,

Tim





Attachment(s):
Log4JMonitor.JPG
0

I'm getting the following exception when I click on a node in Log4JMonitor. Is this a known problem or am I doing something wrong?

0

Hi,

Looks like the openapi has changed.. (or at least is not backwards compatable anymore)
I haven't switched to the pallada builds yet..
I'll have a look at it..

thanks for the report,

Aiko


Michael Tennes wrote:

I'm getting the following exception when I click on a node in Log4JMonitor. Is this a known problem or am I doing something wrong?

 java.lang.NoClassDefFoundError: com/intellij/openapi/projectRoots/ProjectRootManager
> 	at com.webspherious.intellij.utils.IntelliJFileUtils.exists(IntelliJFileUtils.java:84)
> 	at com.webspherious.intellij.Log4JPlugin.fileExists(Log4JPlugin.java:144)
> 	at com.webspherious.log4jmonitor.AbtractLog4JPlugin.toLink(AbtractLog4JPlugin.java:157)
> 	at com.webspherious.log4jmonitor.AbtractLog4JPlugin.toLink(AbtractLog4JPlugin.java:179)
> 	at com.webspherious.log4jmonitor.AbtractLog4JPlugin.getHTMLRepresentation(AbtractLog4JPlugin.java:228)
> 	at com.webspherious.log4jmonitor.DetailPanel$2.run(DetailPanel.java:102)
> 	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
> 	at java.awt.EventQueue.dispatchEvent(EventQueue.java:477)
> 	at com.intellij.ide.r.b(r.java:43)
> 	at com.intellij.ide.r.a(r.java:30)
> 	at com.intellij.ide.r.dispatchEvent(r.java:99)
> 	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
> 	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)
> 	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
> 	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
> 	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)]]>

0

I use Log4jMonitor with the Pallada builds without any problems. I think the
poster is using an older version. 3.x perhaps?

"Aiko Mastboom" <intellij@aiko.sh> wrote in message
news:c8i9fs$4gj$1@is.intellij.net...

Hi,

>

Looks like the openapi has changed.. (or at least is not backwards

compatable anymore)

I haven't switched to the pallada builds yet..
I'll have a look at it..

>

thanks for the report,

>

Aiko

>
>

Michael Tennes wrote:

I'm getting the following exception when I click on a node in

Log4JMonitor. Is this a known problem or am I doing something wrong?

>

 > java.lang.NoClassDefFoundError:
com/intellij/openapi/projectRoots/ProjectRootManager
> > at
com.webspherious.intellij.utils.IntelliJFileUtils.exists(IntelliJFileUtils.j
ava:84)
> > at
com.webspherious.intellij.Log4JPlugin.fileExists(Log4JPlugin.java:144)
> > at
com.webspherious.log4jmonitor.AbtractLog4JPlugin.toLink(AbtractLog4JPlugin.j
ava:157)
> > at
com.webspherious.log4jmonitor.AbtractLog4JPlugin.toLink(AbtractLog4JPlugin.j
ava:179)
> > at
com.webspherious.log4jmonitor.AbtractLog4JPlugin.getHTMLRepresentation(Abtra
ctLog4JPlugin.java:228)
> > at com.webspherious.log4jmonitor.DetailPanel$2.run(DetailPanel.java:102)
> > at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
> > at java.awt.EventQueue.dispatchEvent(EventQueue.java:477)
> > at com.intellij.ide.r.b(r.java:43)
> > at com.intellij.ide.r.a(r.java:30)
> > at com.intellij.ide.r.dispatchEvent(r.java:99)
> > at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:234)
> > at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:184)
> > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
> > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
> > at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)]]>



0

I get a problem with the EAP version (3370), due to an API change.
OpenFileDescriptor wants the project now.

java.lang.NoSuchMethodError: com.intellij.openapi.fileEditor.OpenFileDescriptor.]]>(Lcom/intellij/openapi/vfs/VirtualFile;II)V
at com.webspherious.intellij.utils.IntelliJFileUtils.openFile(IntelliJFileUtils.java:143)
at com.webspherious.intellij.Log4JPlugin.openFile(Log4JPlugin.java:129)
at com.webspherious.log4jmonitor.AbtractLog4JPlugin.openFileFromLink(AbtractLog4JPlugin.java:192)
at com.webspherious.log4jmonitor.DetailPanel$1.hyperlinkUpdate(DetailPanel.java:67)
at javax.swing.JEditorPane.fireHyperlinkUpdate(JEditorPane.java:320)
at javax.swing.text.html.HTMLEditorKit$LinkController.activateLink(HTMLEditorKit.java:827)
at javax.swing.text.html.HTMLEditorKit$LinkController.mouseClicked(HTMLEditorKit.java:637)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212)
at java.awt.Component.processMouseEvent(Component.java:5491)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3093)

0

Please sign in to leave a comment.