-
Notifications
You must be signed in to change notification settings - Fork 87
JumpToCode
Jump to code is integration of OtrosLogViewer with Java IDE (currently we are supporting only IntelliJ IDEA). If log event contains stack trace user can move mouse on selected stack element and click on it. IDE will open java class at selected line (if class is accessible). If user hover mouse on stack trace element, tooltip with code fragment will show up.
This is how tooltip with code fragment looks like:
On screenshot below is shown how IDEA Intellij performs jump to code (yellow line):
#What is required to have in logs
Integration with Intellij IDEA is more advance. It requires information only about logging class or logger and log message. Based on this it will try to locate part of code responsible for logging.
Integration with Eclipse requires that log line will contain information about location in code (file and line). Logger can be configured to add this information but it is costly operation (requires throwing and catching exception for every log event).
How to install integration with IntelliJ IDEA
- In Intellij IDEA you have to install OtrosJumpToCode plugin from Jetbrains repository: http://plugins.jetbrains.com/plugin/7406?pr=
- Open logs from your application
- In Intellij IDEA open sources of your application
- When log event with stack trace is displayed, click on stack trace element
How to install integration with Eclipse
OtrosLogViewer Eclipse plugin can be installed using this update site: https://raw.githubusercontent.com/k0ner/olv-eclipse-integration/master/eu.tendera.olv.updatesite/site.xml.
- In Eclipse menu "Help" select "Install New Software".
- On "Install" dialog click "Add" button.
- In Name enter OLV, in Location enter https://raw.githubusercontent.com/k0ner/olv-eclipse-integration/master/eu.tendera.olv.updatesite/site.xml
- When list of available software is downloaded, select plugin and click Next/Finish.
- Introduction
- Installation
- Opening logs
- Log parsers
- Searching for events
- Marking events
- Notes
- Filters
- Log events message detail formatters and colorizers
- Jump to code - Integration with IDE
- Saving and loading log investigation
- HotKeys
- Batch processing
- DevelopingPlugins
- Developing on OtrosLogViewer
- Experimental features
- Limitations
- Video
- Used by
- DonateAndDonors