Skip to content
Snippets Groups Projects
Commit 0b13a6ba authored by ginkgomzd's avatar ginkgomzd :yin_yang: Committed by GitHub
Browse files

example write to log without creating an error

parent ea76b490
Branches
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
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
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.
Please register or to comment