8

Do you have any idea how can I setup my Remote configuration to display a log file on the server instead of on my local machine?

On the edit configuration screen (Logs tab) I have the option to show a log file, but only logs from my machine, not from the remote server.

enter image description here

I don't mind if I have to install any plugin for it, but until now I couldn't find any that did what I want.

Thanks!

João Santos
  • 155
  • 2
  • 9

3 Answers3

5

See this JetBrains plugin. I've just installed it myself. You can create a remote debug session from Intellij with your server and than point the logs with Log4JPlugin.

For remote debug connections check this

Hope it helps!

Community
  • 1
  • 1
bogdan.rusu
  • 833
  • 3
  • 23
  • 38
0

I love the tail command:

tail -f /your/path/your.log

Just open a IntelliJ terminal, connect to your (linux web) server via ssh and type the tail command with the correct location to your file.

The tail -f will print the end of the file to your screen, and update it as the file changes. It will run as a foreground process, so to cancel it, press CTRL+C.

Christian Michael
  • 1,770
  • 18
  • 26
0

You can track your logs directly via SSH

ssh your_server tail -f /to/your/log_file
HBSON
  • 1