You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Custom PHP Script Log

Received Response
46
Views
4
Comments
edited Aug 4, 2020 1:14PM in General Technical Discussions 4 comments

Summary

How to log vars from Agent Console / File Manager / PHP custom script

Content

Hi There,

I've noticed in some of the PHP scripts located in the Agent Console File Manager / Custom Scripts there are instances of "_log(var_name)" function.
For instance: _log("Incident found: " . $incident->ID);

those were written by other developers and I wonder where this function logs to.

I've looked in the Agent Console under Site Configuration / Logs and nothing is being written to any of the  log categories (error, info, security, etc...)

With that said:

Is it the correct / best way to log a custom PHP script?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!