How to Print to Server Log?

 

Hi, 

I know how to use Print() function to get messages to show in the Expert tab locally, but when I load the EA to VPS it does not show any of the Print messages. Is there a different function or method of going about this I need to use? I just want to run some different diagnostic checks when an EA starts up on VPS to make sure everything is working properly.

Thanks.

 
What "does not show any of the Print messages?" Don't expect your local terminal to have them. Show the VPS desktop and look at that terminal's logs.
 

I'm not expecting my local terminal to show print messages from the server. What I'd like to know is how do you create a log in the server's journal - such as the following common one:

2019.04.10 20:30:05.722 'Account#': 4 charts, 4 EAs, 0 custom indicators, signal disabled, last known ping to Broker is 1.26 ms

Except for using SendNotification(), I have not found any other function that displays any sort of server log in the journal.



Reason: