Is LogMonitor still working?
Has anyone successfully installed LogMonitor with Aurora using the
PluginManager? If so, in what build.
I have not used LogMonitor before so I'm sure how it works. From
searching the plugins news-group and the Wiki it was last modified on 27
jul 2003, and that was a rebuild for Aurora build 873.
Please sign in to leave a comment.
Hi,
I haven't tried installing using the PluginManager but I still use it without any problems.
you need the log4jmonitorplugin.jar in your %IDEA_HOME%\plugins directory.
if you like to see idea's logs (or your own application) in the monitor you also
need the log4jmonitor.jar in your %IDEA_HOME%\lib directory.
and add the following to the %IDEA_HOME%\bin\log.xml
and ... ]]>
I believe the readme is still fairly upto date.
happy new year,
Aiko
Dennis Lundberg wrote:
PluginManager
-
The installation via the PluginManager doesn't seem to work. It copies
all the distribution-files to %IDEA_HOME%\plugins\Log4jMonitor and
nothing to %IDEA_HOME%\lib.
My status
-
This is what I have done with 3.0.5 and Aurora build 1050:
1. Copy log4jmonitorplugin.jar to %IDEA_HOME%\plugins
2. Copy log4jmonitor.jar to %IDEA_HOME%\lib
3. Added text to %IDEA_HOME%\bin\log.xml so that (the last part of) it
looks like this:
]]>
4. Added a SocketAppender to my application's log4j.properties, which
looks like this:
log4j.rootCategory=DEBUG, stdout, roller, CHAINSAW_CLIENT
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
#log4j.appender.stdout.layout.ConversionPattern=%-4r %-5p %c %x - %m%n
log4j.appender.stdout.layout.ConversionPattern=%5p (%F:%L) - %m%n
log4j.appender.roller=org.apache.log4j.RollingFileAppender
log4j.appender.roller.File=dvd.log
log4j.appender.roller.MaxFileSize=100KB
log4j.appender.roller.MaxBackupIndex=1
log4j.appender.roller.layout=org.apache.log4j.PatternLayout
log4j.appender.roller.layout.ConversionPattern=%p %t %c - %m%n
log4j.appender.CHAINSAW_CLIENT=org.apache.log4j.net.SocketAppender
log4j.appender.CHAINSAW_CLIENT.RemoteHost=localhost
log4j.appender.CHAINSAW_CLIENT.Port=4445
log4j.appender.CHAINSAW_CLIENT.LocationInfo=true
webspherious.stdConversionPattern=%n%d %-5p at
%c.%M(%F:%L) %n %m%n
5. Added a line like this to my .ipr file:
]]>
Readme.txt
-
This file is not really up to date. When I read it, you only seem to
need one jar-file (log4jmonitor.jar) to get Log4jMonitor to work. Also
the file log4j-not-configurable.properties was lost between 675 and 856.
My results (or not)
-
With 3.0.5 and Aurora build 1050 I get the Log4jMonitor window at the
bottom. Good.
With 3.0.5 I can run my application that uses log4j, but I don't get
anything in the Log4jMonitor window. I have a ConsoleAppender and a
RollingFileAppender that is working. This might just be me, as I am
fairly new to log4j :)
Am I missing something here?
With Aurora build 1050 when I try to run my application I get the
following error message:
log4j:ERROR Could not connect to remote log4j server at . We
will try again later.
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
at java.net.Socket.(Socket.java:268) at java.net.Socket.]]>(Socket.java:122)
at org.apache.log4j.net.SocketAppender.connect(SocketAppender.java:195)
at
org.apache.log4j.net.SocketAppender.activateOptions(SocketAppender.java:152)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247)
at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:123)
at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:87)
at
org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:645)
at
org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:603)
at
org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:500)
at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:406)
at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:432)
at
org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460)
Is this a bug?
Thanks for your help, and a happy new year to you too (still 2 hour left
where I am).
--
Dennis
Aiko Mastboom wrote:
>> Has anyone successfully installed LogMonitor with Aurora using the
>> PluginManager? If so, in what build.
>>
>> I have not used LogMonitor before so I'm sure how it works. From
>> searching the plugins news-group and the Wiki it was last modified on
>> 27 jul 2003, and that was a rebuild for Aurora build 873.
Hi Dennis,
Dennis Lundberg wrote:
Up until here.. it all looks ok to me.
You should be able to see the Monitor in Idea.. (maybe you need to start it first with the green start button).
I don't see why this would be needed.
I'll have a thorrow look at the distribution asap.
The monitor (which acts as a server) probably hasn't been started yet.
>> Hi,
>>
>> I haven't tried installing using the PluginManager but I still use it
>> without any problems.
>>
>> you need the log4jmonitorplugin.jar in your %IDEA_HOME%\plugins
>> directory.
>>
>> if you like to see idea's logs (or your own application) in the
>> monitor you also
>> need the log4jmonitor.jar in your %IDEA_HOME%\lib directory.
>> and add the following to the %IDEA_HOME%\bin\log.xml
>>
>> > > >> >> >> >> >> >> >> >> >> >> >> >> >> >> and >> >> >> >> ... >> >> >> I believe the readme is still fairly upto date. >> >> happy new year, >> >> Aiko >> >> >> Dennis Lundberg wrote: >> >>> Has anyone successfully installed LogMonitor with Aurora using the >>> PluginManager? If so, in what build. >>> >>> I have not used LogMonitor before so I'm sure how it works. From >>> searching the plugins news-group and the Wiki it was last modified on >>>]]> 27 jul 2003, and that was a rebuild for Aurora build 873.
Aiko Mastboom wrote:
>> PluginManager
>> -
>>
>> The installation via the PluginManager doesn't seem to work. It copies
>> all the distribution-files to %IDEA_HOME%\plugins\Log4jMonitor and
>> nothing to %IDEA_HOME%\lib.
>>
>>
>> My status
>> -
>>
>> This is what I have done with 3.0.5 and Aurora build 1050:
>>
>> 1. Copy log4jmonitorplugin.jar to %IDEA_HOME%\plugins
>>
>> 2. Copy log4jmonitor.jar to %IDEA_HOME%\lib
>>
>> 3. Added text to %IDEA_HOME%\bin\log.xml so that (the last part of) it
>> looks like this:
>>
>> > > >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> 4. Added a SocketAppender to my application's log4j.properties, which >> looks like this: >> >> log4j.rootCategory=DEBUG, stdout, roller, CHAINSAW_CLIENT >> log4j.appender.stdout=org.apache.log4j.ConsoleAppender >> log4j.appender.stdout.layout=org.apache.log4j.PatternLayout >>]]> #log4j.appender.stdout.layout.ConversionPattern=%-4r %-5p %c %x -
>> %m%n
>> log4j.appender.stdout.layout.ConversionPattern=%5p (%F:%L) - %m%n
>>
>> log4j.appender.roller=org.apache.log4j.RollingFileAppender
>> log4j.appender.roller.File=dvd.log
>> log4j.appender.roller.MaxFileSize=100KB
>> log4j.appender.roller.MaxBackupIndex=1
>> log4j.appender.roller.layout=org.apache.log4j.PatternLayout
>> log4j.appender.roller.layout.ConversionPattern=%p %t %c - %m%n
>>
>> log4j.appender.CHAINSAW_CLIENT=org.apache.log4j.net.SocketAppender
>> log4j.appender.CHAINSAW_CLIENT.RemoteHost=localhost
>> log4j.appender.CHAINSAW_CLIENT.Port=4445
>> log4j.appender.CHAINSAW_CLIENT.LocationInfo=true
>> webspherious.stdConversionPattern=%n%d %-5p at
>> %c.%M(%F:%L) %n %m%n
>>
I knew it had to be something simple.
Once I started it, it runs nicely. >> 5. Added a line like this to my .ipr file: >> ]]>
Maybe this comes automagically when you open a project after the plugin
has been installed?
>>
>>
>> Readme.txt
>> -
>>
>> This file is not really up to date. When I read it, you only seem to
>> need one jar-file (log4jmonitor.jar) to get Log4jMonitor to work. Also
>> the file log4j-not-configurable.properties was lost between 675 and 856.
Let me know if you need any help writing a user-guide. From a user's
perspective ;)
As I said in an earlier post, this plugin can't be installed with the
Plugin Manager in Aurora, at the moment. This probably has something to
to with the plugin-descriptor thingy that the Plugin Manager uses.
Perhaps one of the other plugin-authors can help out with this. I have
installed these plugins via the Plugin Manager, and they install in a
way similar to Log4jMonitor:
- GenerateToString
- Intentions Power Pack
- Inspection Gadgets
After successfully installing the plugin manually, it is now listed as
"Installed" by the Plugin Manager, which is a good sign.
>> My results (or not)
>> -
>>
>> With 3.0.5 and Aurora build 1050 I get the Log4jMonitor window at the
>> bottom. Good.
>>
>> With 3.0.5 I can run my application that uses log4j, but I don't get
>> anything in the Log4jMonitor window. I have a ConsoleAppender and a
>> RollingFileAppender that is working. This might just be me, as I am
>> fairly new to log4j :)
>> Am I missing something here?
>>
>> With Aurora build 1050 when I try to run my application I get the
>> following error message:
>>
Yes that's it. The plugin does behave differently in 3.0.5 and Aurora.
Is it possible to catch this exception in the plugin and show a dialog
to user telling him/her to please start the monitor.
Thanks for your help!
>> log4j:ERROR Could not connect to remote log4j server at .
>> We will try again later.
>> java.net.ConnectException: Connection refused: connect
>> at java.net.PlainSocketImpl.socketConnect(Native Method)
>> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
>> at
>> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
>> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
>> at java.net.Socket.(Socket.java:268) >> at java.net.Socket.(Socket.java:122) >> at >> org.apache.log4j.net.SocketAppender.connect(SocketAppender.java:195) >> at >> org.apache.log4j.net.SocketAppender.activateOptions(SocketAppender.java:152) >> >> at >> org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247) >> at >> org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:123) >> >> at >> org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:87) >> >> at >> org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:645) >> >> at >> org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:603) >> >> at >> org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:500) >> >> at >> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:406) >> >> at >> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:432) >> >> at >> org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460) >> >> >> Is this a bug? >> >> Thanks for your help, and a happy new year to you too (still 2 hour >> left where I am). >> >> -- >> Dennis >> >> Aiko Mastboom wrote: >> >>> Hi, >>> >>> I haven't tried installing using the PluginManager but I still use it >>> without any problems. >>> >>> you need the log4jmonitorplugin.jar in your %IDEA_HOME%\plugins >>> directory. >>> >>> if you like to see idea's logs (or your own application) in the >>> monitor you also >>> need the log4jmonitor.jar in your %IDEA_HOME%\lib directory. >>> and add the following to the %IDEA_HOME%\bin\log.xml >>> >>> >> > >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> and >>> >>> >>> >>> ... >>> >>> >>> I believe the readme is still fairly upto date. >>> >>> happy new year, >>> >>> Aiko >>> >>> >>> Dennis Lundberg wrote: >>> >>>> Has anyone successfully installed LogMonitor with Aurora using the >>>> PluginManager? If so, in what build. >>>> >>>> I have not used LogMonitor before so I'm sure how it works. From >>>> searching the plugins news-group and the Wiki it was last modified >>>>]]> on 27 jul 2003, and that was a rebuild for Aurora build 873.
--
Dennis