shaneh Posted October 29, 2010 Share Posted October 29, 2010 Hi, Is it possible to write information to the activity logs from an action hook? If so, how? Basically I'm using the hooks to connect to a 3rd party API and I want to be able to write the returned messages to the WHMCS logs. thanks S 0 Quote Link to comment Share on other sites More sharing options...
GORF Posted October 29, 2010 Share Posted October 29, 2010 Use SQL to INSERT into the table. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted October 29, 2010 Share Posted October 29, 2010 You can use the whmcs function eg.. logActivity("Script AutoInstall: $message"); 0 Quote Link to comment Share on other sites More sharing options...
shaneh Posted November 1, 2010 Author Share Posted November 1, 2010 Hi, Thanks for that, doesn't appear to work. When I use the function and check the activity log there's a blank entry where the message should be. S 0 Quote Link to comment Share on other sites More sharing options...
HerrZ Posted November 1, 2010 Share Posted November 1, 2010 logActivity("This is a Test"); this works for sure (inside of whmcs)! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.