Jonathan Lahijani Posted March 21 Share Posted March 21 I have a URL hook like this which acts as an API endpoint: wire()->addHook('/foo/', function(HookEvent $event) { bd($event); }); That endpoint will be hit from somewhere with some post data, outside of ProcessWire. As you can see, I have a bardump to log $event, but I won't be able to see that output because it's coming from some outside request. How do I actually log it and store it (without using ProcessWire's own $log capabilities)? Link to comment Share on other sites More sharing options...
adrian Posted March 21 Share Posted March 21 Turn on Guest Dumps - "Enable Guest Dumps" button on the Panel Selector. 1 Link to comment Share on other sites More sharing options...
adrian Posted March 22 Share Posted March 22 The other thing you should play with is the Request Logger panel - lots of useful info collected by it. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now