From 0b13a6baf00828456a5aee34b99f5590bb02ead7 Mon Sep 17 00:00:00 2001
From: Michael Z Daryabeygi <daryabeygi@ginkgostreet.com>
Date: Wed, 4 Oct 2017 16:18:56 -0400
Subject: [PATCH] example write to log without creating an error

---
 docs/tools/debugging.md | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/docs/tools/debugging.md b/docs/tools/debugging.md
index 20343a40..b00d264d 100644
--- a/docs/tools/debugging.md
+++ b/docs/tools/debugging.md
@@ -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:
-- 
GitLab