Skip to content
Snippets Groups Projects
Commit ef15b780 authored by Sean Madsen's avatar Sean Madsen Committed by GitHub
Browse files

Merge pull request #384 from ginkgomzd/patch-4

example write to log without creating an error
parents ea76b490 0b13a6ba
No related branches found
No related tags found
No related merge requests found
...@@ -40,6 +40,10 @@ A backtrace is a list of all the functions that were run in the execution of the ...@@ -40,6 +40,10 @@ A backtrace is a list of all the functions that were run in the execution of the
CiviCRM's log files are stored in the `ConfigAndLog` directory within CiviCRM's local file storage (see [the File System documentation](/framework/filesystem.md) for details on your CMS). Most runtime errors are logged here, as well as data that you explicitly write to log using the `CRM_Core_Error::debug log=true` parameter. CiviCRM's log files are stored in the `ConfigAndLog` directory within CiviCRM's local file storage (see [the File System documentation](/framework/filesystem.md) for details on your CMS). Most runtime errors are logged here, as well as data that you explicitly write to log using the `CRM_Core_Error::debug log=true` parameter.
One may also write to the log file without creating an error with:
`Civi::log()->debug(__FUNCTION__);`
This example will write the function-name to ConfigAndLog using the PHP constant, `__FUNCTION__`.
## Changing file-based settings ## Changing file-based settings
The following values can be added to your site's settings file `civicrm.settings.php` to assist in debugging: The following values can be added to your site's settings file `civicrm.settings.php` to assist in debugging:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment