I am executing a task from an action in Symfony. I wish to capture the output from the task & display it to the (admin) user. Do I extract it from the dispatcher / log or somewhere else?
相关问题
- I want to trace logs using a Macro multi parameter
- Error message 'No handlers could be found for
- convert logback.xml to log4j.properties
- Django management command doesn't show logging
- apache modules ap_log_perror is at a different lev
相关文章
- how do I log requests and responses for debugging
- How do do an async ServiceController.WaitForStatus
- Android Studio doesn't display logs by package
- Stacktrace does not print in Glassfish 4.1 Cluster
- Out of curiosity — why don't logging APIs impl
- Laravel log file based on date
- Java -How to get logger to work in shutdown hook?
- Codeigniter not logging
Why not just perform the task within the action - and format the output in the template ? why are you running a separate task from an Action ? (i know this thread is old)
This might not be the answer you're looking for, however, in a task you can log to a seperate file like so (within the execute function in the task class):
And then in your task when you use:
It will automatically log to the custom log file.
Hope this helps. :-)