renatoathaydes / logfx Goto Github PK
View Code? Open in Web Editor NEWLogFX is a simple Log reader supporting color highlighting and able to handle giant files.
License: GNU General Public License v3.0
LogFX is a simple Log reader supporting color highlighting and able to handle giant files.
License: GNU General Public License v3.0
It's difficult to manually adjust the sizes of each pane when multiple files are open at the same time.
An action for doing that automatically would be very helpful.
Sorry for this noob report, I have never launched a JavaFX app before, and I am very far from the Java world.
$ lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
$ java -version
openjdk version "9-internal"
OpenJDK Runtime Environment (build 9-internal+0-2016-04-14-195246.buildd.src)
OpenJDK 64-Bit Server VM (build 9-internal+0-2016-04-14-195246.buildd.src, mixed mode)
$ sudo apt install openjfx
Reading package lists... Done
Building dependency tree
Reading state information... Done
openjfx is already the newest version (8u60-b27-4).
curl -sSfL https://jcenter.bintray.com/com/athaydes/logfx/logfx/0.7.0/logfx-0.7.0-all.jar -o logfx.jar
java -jar logfx.jar
Error: Could not find or load main class com.athaydes.logfx.LogFX
java -verbose
shows no errors. How do you debug such errors?
The unreleased version should use some other shortcut for the new function!
Log files containing Windows line-endings are shown with double-spaces between lines due to the carriage-return (\r
) character not being removed correctly from the line-ending.
A focus of LogFX is to be keyboard-friendly.
Allowing users to close popups with 'Esc' as is common in developer tools is a good improvement.
Load more lines so mostly the native scrolling is used, then when the edge is reached, load the next page directly and scroll to the current position. That should make scrolling much nicer.
When using the go-to-date-time in small files, it seems the search overshoots and the line number returned is far from the correct one.
This is helpful to compare the behaviour between a "success" and a "fail" run, for example.
This will allow users to switch between completely different setups, with different highlight rules/groups and opened files.
This is useful to swtich between "projects".
The default font, Monaco, does not exist in Windows.
Probably does not exist in Linux either.
Use a more standard font.
Wrong key is being used for all shortcuts.
See https://stackoverflow.com/questions/12710468/using-javafx-2-2-mnemonic-and-accelerators
Use KeyCombination.CONTROL_DOWN
instead of KeyCombination.META_DOWN
.
When a user sets the "catch-all" colors, it is not remembered between restarts.
Hello, nice tool
When in the "Highlight Options" menu I instinctively clicked on a colored square expecting a color chooser to pop up. Would be a nice addition.
Best Regards,
When a file is dragged on top of LogFX, the overlay pane is shown at the wrong position.
For performance reasons, it's good to crop very long messages, but that should be marked clearly,
and copying the marked line should result in copying the actual full line.
On my Windows 10 machine, the path to where logfx.bat is located has spaces and a dash in it. This causes logfx.bat to fail to start with this error :
Unrecognized option: -
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
The fix is to to put quotes around the VM_OPTIONS
, like this:
set VM_OPTIONS="-splash:%DIR%logfx-logo.png -Xms32m -XX:+UseSerialGC"
With that change, it starts up.
Hello ^^
It would be nice to be able to save/load/edit the color rules.
And eventually to link them (and the date format) automatically to a log file (by extension ? or by directory or filename ?). It would be cool to have a preset for Apache log file, another one for PHP error logs, another for Tomcat, ...
Emacs style C-p
(previous line) and C-n
(next line).
The new bottom bar (added in v0.9.0) showing when the filter is enabled is always visible on MacOS.
I tested only on linux, did not expect different behaviour in Mac... but there you go.
When changing colors in the highlight options screen, the colors in the log viewer should change immediately as the colors are modified.
This works for all rules, except the standard, last rule.
This seems to have broken after refactoring of the highlight options list.
In Windows, the full path of the stylesheet is given to JavaFX, but that does not work for some reason.
JavaFX says the it can't find the stylesheet under file:C:\path\to\file
even when the path is correct. Probably due to the C:
being included in the path.
Exception in thread "AppKit Thread" java.util.concurrent.RejectedExecutionException: Task com.athaydes.logfx.ui.LogView$$Lambda$331/0x000000080036a840@55ed442f rejected from java.util.concurrent.ThreadPoolExecutor@5e0f6a61[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 2]
at java.base/java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.reject(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.execute(Unknown Source)
at java.base/java.util.concurrent.Executors$DelegatedExecutorService.execute(Unknown Source)
at com.athaydes.logfx/com.athaydes.logfx.ui.LogView.immediateOnFileChange(Unknown Source)
at com.athaydes.logfx/com.athaydes.logfx.ui.LogView.immediateOnFileChange(Unknown Source)
at com.athaydes.logfx/com.athaydes.logfx.ui.LogView.lambda$new$2(Unknown Source)
at javafx.base/com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(Unknown Source)
at javafx.base/com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(Unknown Source)
at javafx.base/javafx.beans.value.ObservableValueBase.fireValueChangedEvent(Unknown Source)
at com.athaydes.logfx/com.athaydes.logfx.binding.BindableValue.setValue(Unknown Source)
at com.athaydes.logfx/com.athaydes.logfx.ui.HighlightGroupSelector.lambda$new$3(Unknown Source)
at javafx.base/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
at javafx.base/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
at javafx.base/javafx.event.Event.fireEvent(Unknown Source)
at javafx.graphics/javafx.scene.Node.fireEvent(Unknown Source)
at javafx.controls/javafx.scene.control.ChoiceBox$4.invalidated(Unknown Source)
at javafx.base/javafx.beans.property.ObjectPropertyBase.markInvalid(Unknown Source)
at javafx.base/javafx.beans.property.ObjectPropertyBase.set(Unknown Source)
at javafx.controls/javafx.scene.control.ChoiceBox.setValue(Unknown Source)
at javafx.controls/javafx.scene.control.ChoiceBox.lambda$new$1(Unknown Source)
at javafx.base/com.sun.javafx.binding.ExpressionHelper$SingleChange.fireValueChangedEvent(Unknown Source)
at javafx.base/com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(Unknown Source)
at javafx.base/javafx.beans.property.ReadOnlyObjectPropertyBase.fireValueChangedEvent(Unknown Source)
at javafx.base/javafx.beans.property.ReadOnlyObjectWrapper.fireValueChangedEvent(Unknown Source)
at javafx.base/javafx.beans.property.ObjectPropertyBase.markInvalid(Unknown Source)
at javafx.base/javafx.beans.property.ObjectPropertyBase.set(Unknown Source)
at javafx.controls/javafx.scene.control.SelectionModel.setSelectedItem(Unknown Source)
at javafx.controls/javafx.scene.control.SingleSelectionModel.updateSelectedIndex(Unknown Source)
at javafx.controls/javafx.scene.control.SingleSelectionModel.select(Unknown Source)
at javafx.controls/javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.select(Unknown Source)
at javafx.controls/javafx.scene.control.SingleSelectionModel.select(Unknown Source)
at javafx.controls/javafx.scene.control.ChoiceBox$ChoiceBoxSelectionModel.select(Unknown Source)
at com.athaydes.logfx/com.athaydes.logfx.ui.HighlightGroupSelector.lambda$new$0(Unknown Source)
Exception in thread "AppKit Thread" java.lang.NullPointerException
at com.athaydes.logfx/com.athaydes.logfx.ui.HighlightGroupSelector$HighlightGroupSelectorConverter.toString(Unknown Source)
at com.athaydes.logfx/com.athaydes.logfx.ui.HighlightGroupSelector$HighlightGroupSelectorConverter.toString(Unknown Source)
at javafx.controls/javafx.scene.control.skin.ChoiceBoxSkin.getDisplayText(Unknown Source)
at javafx.controls/javafx.scene.control.skin.ChoiceBoxSkin.updateLabelText(Unknown Source)
at javafx.controls/javafx.scene.control.skin.ChoiceBoxSkin.lambda$new$5(Unknown Source)
at javafx.controls/com.sun.javafx.scene.control.LambdaMultiplePropertyChangeListenerHandler.lambda$new$1(Unknown Source)
at javafx.base/javafx.beans.value.WeakChangeListener.changed(Unknown Source)
at javafx.base/com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(Unknown Source)
at javafx.base/com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(Unknown Source)
at javafx.base/javafx.beans.property.ObjectPropertyBase.fireValueChangedEvent(Unknown Source)
at javafx.base/javafx.beans.property.ObjectPropertyBase.markInvalid(Unknown Source)
at javafx.base/javafx.beans.property.ObjectPropertyBase.set(Unknown Source)
at javafx.controls/javafx.scene.control.ChoiceBox.setValue(Unknown Source)
at javafx.controls/javafx.scene.control.ChoiceBox.lambda$new$1(Unknown Source)
at javafx.base/com.sun.javafx.binding.ExpressionHelper$SingleChange.fireValueChangedEvent(Unknown Source)
at javafx.base/com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(Unknown Source)
at javafx.base/javafx.beans.property.ReadOnlyObjectPropertyBase.fireValueChangedEvent(Unknown Source)
at javafx.base/javafx.beans.property.ReadOnlyObjectWrapper.fireValueChangedEvent(Unknown Source)
at javafx.base/javafx.beans.property.ObjectPropertyBase.markInvalid(Unknown Source)
at javafx.base/javafx.beans.property.ObjectPropertyBase.set(Unknown Source)
at javafx.controls/javafx.scene.control.SelectionModel.setSelectedItem(Unknown Source)
at javafx.controls/javafx.scene.control.SingleSelectionModel.updateSelectedIndex(Unknown Source)
at javafx.controls/javafx.scene.control.SingleSelectionModel.clearSelection(Unknown Source)
at javafx.controls/javafx.scene.control.ChoiceBox.lambda$new$2(Unknown Source)
at javafx.base/com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(Unknown Source)
at javafx.base/com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(Unknown Source)
at javafx.base/javafx.collections.ObservableListBase.fireChange(Unknown Source)
at javafx.base/javafx.collections.ListChangeBuilder.commit(Unknown Source)
at javafx.base/javafx.collections.ListChangeBuilder.endChange(Unknown Source)
at javafx.base/javafx.collections.ObservableListBase.endChange(Unknown Source)
at javafx.base/javafx.collections.ModifiableObservableListBase.setAll(Unknown Source)
at com.athaydes.logfx/com.athaydes.logfx.ui.HighlightGroupSelector.lambda$new$1(Unknown Source)
at javafx.base/com.sun.javafx.collections.MapListenerHelper$Generic.fireValueChangedEvent(Unknown Source)
at javafx.base/com.sun.javafx.collections.MapListenerHelper.fireValueChangedEvent(Unknown Source)
at javafx.base/com.sun.javafx.collections.ObservableMapWrapper.callObservers(Unknown Source)
at javafx.base/com.sun.javafx.collections.ObservableMapWrapper.put(Unknown Source)
at java.base/java.util.Map.computeIfAbsent(Unknown Source)
at com.athaydes.logfx/com.athaydes.logfx.config.HighlightGroups.add(Unknown Source)
at com.athaydes.logfx/com.athaydes.logfx.ui.HighlightGroupsView.newGroup(Unknown Source)
at com.athaydes.logfx/com.athaydes.logfx.ui.HighlightGroupsView.lambda$handleDuplicateGroup$3(Unknown Source)
at javafx.base/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
at javafx.base/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
at javafx.base/javafx.event.Event.fireEvent(Unknown Source)
at javafx.graphics/javafx.scene.Node.fireEvent(Unknown Source)
at javafx.controls/javafx.scene.control.Button.fire(Unknown Source)
at javafx.controls/com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(Unknown Source)
at javafx.controls/com.sun.javafx.scene.control.inputmap.InputMap.handle(Unknown Source)
at javafx.base/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at javafx.base/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
at javafx.base/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
at javafx.base/javafx.event.Event.fireEvent(Unknown Source)
at javafx.graphics/javafx.scene.Scene$MouseHandler.process(Unknown Source)
at javafx.graphics/javafx.scene.Scene.processMouseEvent(Unknown Source)
at javafx.graphics/javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(Unknown Source)
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Unknown Source)
at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)
at javafx.graphics/com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
at javafx.graphics/com.sun.glass.ui.View.notifyMouse(Unknown Source)
at javafx.graphics/com.sun.glass.ui.mac.MacView.notifyMouse(Unknown Source)
Most applications support zooming in/out via shortcuts.
On Mac/Linux, Cmd+
and Cmd-
are used to zoom in/out respectively, Windows probably has some other shortcut?!
LogFX just has to change the font sizes to emulate zooming... probably.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.