isc.showConsole() Log collection, IDACall and PHP

Hi.

We are using PHP and would like to ask is it possible to implement or use a IDACall-equivalent for PHP such that we can display the server log correctly in the isc.showConsole().

Is there any reference doc which contains such details?

Thanks
Ric Yik

Hi Ric Yik,

Building such an interface is easy - say the server log is available at a url “/logs/latest.txt”, just send an RPCRequest to that URL with useSimpleHttp:true and access the rpcResponse.data variable - that would be the log text. You could then display it in a TextAreaItem.

Integrating it into the Developer Console is feasible but a mild hack. You could, for example, add your code for fetching the server log to isomorphic/system/helpers/Log.html, calling tabSet.updateTab to replace the existing “Server Logs” tab with your own interface.