How to enable PHP Logging: Difference between revisions

From support-works
Jump to navigation Jump to search
No edit summary
No edit summary
 
(7 intermediate revisions by one other user not shown)
Line 1: Line 1:
'''Applicable To:All Versions of Supportworks'''


* [[How to enable PHP Logging]]
For debugging purposes, there maybe times when php logging is useful. Please see instructions below on how to enable them:




{{Template:Basic Cover
# Open <installPath>\Hornbill\Core Services\SwHttpServer\bin\php.ini
| title=Creating a SLA Diagnostic Report from a Call
# Uncomment: error_reporting = E_ALL & ~E_NOTICE  (Remove the leading semi-colon)
}}
# Change: error_reporting =  Off to error_reporting =  On
 
# Change: display_errors = On to display_errors = Off
{{Template:Basic Status
# Change: log_errors = Off to log_errors = On
| status=Published
# Change: ;error_log = filename to: error_log = "<installPath>\Hornbill\Supportworks Server\log\phperror.log" ..Note: the quotes around the file path are required!!!)
| version=1.1
# Restart the SwHttpServer service
| authors=Hornbill Support
| applicableto=All Versions of Supportworks
}}
 
 
 
1. Open <installPath>\Hornbill\Core Services\SwHttpServer\bin\php.ini
2. Uncomment: error_reporting = E_ALL & ~E_NOTICE   
(Remove the leading semi-colon)
3. Change: error_reporting =  Off to error_reporting =  On
4. Change: display_errors = On to display_errors = Off
5. Change: log_errors = Off to log_errors = On
6. Change: ;error_log = filename to:
error_log = "<installPath>\Hornbill\Supportworks Server\log\phperror.log"
(Note: the quotes around the file path are required!!!)
7. Restart the SwHttpServer service

Latest revision as of 17:53, 16 February 2018

Applicable To:All Versions of Supportworks

For debugging purposes, there maybe times when php logging is useful. Please see instructions below on how to enable them:


  1. Open <installPath>\Hornbill\Core Services\SwHttpServer\bin\php.ini
  2. Uncomment: error_reporting = E_ALL & ~E_NOTICE (Remove the leading semi-colon)
  3. Change: error_reporting = Off to error_reporting = On
  4. Change: display_errors = On to display_errors = Off
  5. Change: log_errors = Off to log_errors = On
  6. Change: ;error_log = filename to: error_log = "<installPath>\Hornbill\Supportworks Server\log\phperror.log" ..Note: the quotes around the file path are required!!!)
  7. Restart the SwHttpServer service