Anyone knows if there's a way to monitor arbitrary...
# intellij
b
Anyone knows if there's a way to monitor arbitrary logs in IJ? I know this exists, but I'm outside the context of a running configuration.
l
Open a terminal window and use
tail
?
b
I like your style - do it like it's 1972 πŸ˜… I mean yeah that works, but I like the syntax coloring and a way to quickly filter lines
l
You can use
less
on the log file, then press
F
to automatically update the text as it comes in. You can also press
&
to give a regex, and then you'll filter to only see rows that match that regex.
It's like a dynamic way to apply
grep
without having to restart the tool.
less
also has syntax highlighting. I've never tried it, but it appears you can write your own definitions even.
It's really much more powerful than anything you have in IDEA.
b
I mean... IJ already has a built-in tool, it's just that it seems to be only used when running something. Was wondering if it could be used independently as well.
l
It probably can. I'm not saying you shouldn't use it if it can. Just that the existing tools may actually serve your purpose better.
b
If I were to use something in the terminal, it looks like Multitail is the gold standard. But meh.
c
You can tail the IntelliJ logs themselves with "Help | Tail logs in Console"
You can tail any other file with "SHIFT SHIFT Tail" and then select the file
b
Interesting - maybe did you install a specific plugin? Shift shift tail doesn't show a tail action here. That's what I have:
c
Are you on MacOS?
b
yes βœ…
c
Do you have "Help | Tail logs in Console" ?
IIRC I read somewhere that that feature doesn't exist on MacOS, can't remember where though
b
Do you have "Help | Tail logs in Console" ?
❌
c
πŸ˜•
b
very strange πŸ™‚
c
Linux
b
can you show the UI of when you tail some file?
c
image.png
b
wow yeah that's exactly what I want! I guess I'll get a linux box πŸ˜…
c
It seems the plugin Grep Console has functionality related to this, but I don't know to what extent
wait no everything I showed comes from the Grep Console plugin
πŸ€”
b
aaaaaah
c
weird that it appears in the IntelliJ menus and not the plugin's menus, I was convinced that was a vanilla feature
b
I'll try it then πŸ™‚
wow πŸ˜„
but yeah that works. Thanks!
c
yeah this plugin is quite big and the UX isn't the best πŸ˜…
I use it to highlight specific lines in log files, e.g. to have errors in red, etc
πŸ‘ 1