Log4Monitor

Does it still works in 8.x ? If yes, how can i configure it or where can
i read about it. There is not Log4Monitor folder in %IDEA_HOME%/plugins
as author states

2 comments
Comment actions Permalink

Looking at the page for the plugin (http://plugins.intellij.net/plugin/?id=13) it looks as if this plugin broke back in IDEA v5.1 and the author is no longer maintaining it.

I am not familiar with this plug-in and all the functionality it provided. But are you aware that IDEA has some built in ability to monitor a log file? When you make a Run/Debug configuration, there is a "Logs" tab on which you can define one or more log files to monitor. The output of those logs are shown on a tab in the Run tool window. You can select to have it show all the content, or only the content from the current run. See IntelliJ IDEA | Reference | Dialogs | Run/Debug Configuration | Run/Debug Configuration: Logs Tab in the IDEA help for more info.

As an added tip, if you have your log output conform to a particular format, you will get hyperlinks in the log when IDEA display it that will take you directly to the line in the source code. This tip is discussed in the help towards the bottom of the page IntelliJ IDEA | Procedures | Running | Setting Log Options. It is also discussed in the feature request that requested this tip at http://www.jetbrains.net/jira/browse/IDEADEV-23154

One nice this about the new Logback logging framework (the successor to Log4j) is that you can define a different logging configuration file for test code and production code. So you can use the "special" formatting in your test code configuration and get the linking.

I hope that helps.

0
Comment actions Permalink

Thank you for your information. I actually found instructions, how to
make Log4jMonitor work :) (and suprisingly it still works in 8.0) , but
anyway thanks

0

Please sign in to leave a comment.