From 0e1a813977b5874a98b3188bbdfc5dd2aab4b11c Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Wed, 6 Jan 2021 00:40:12 +0800 Subject: [PATCH] Remove discussion on LoggerAwareTrait --- user_guide_src/source/general/logging.rst | 8 -------- 1 file changed, 8 deletions(-) diff --git a/user_guide_src/source/general/logging.rst b/user_guide_src/source/general/logging.rst index 6b338c54ee99..aa3e4d7b9f8d 100644 --- a/user_guide_src/source/general/logging.rst +++ b/user_guide_src/source/general/logging.rst @@ -152,11 +152,3 @@ like Composer. Next, you should modify ``/app/Config/Services.php`` to point the alias to your new class name. Now, any call that is done through the ``log_message()`` function will use your library instead. - -LoggerAware Trait -================= - -If you would like to implement your libraries in a framework-agnostic method, you can use -the ``CodeIgniter\Log\LoggerAwareTrait`` which implements the ``setLogger()`` method for you. -Then, when you use your library under different environments for frameworks, your library should -still be able to log as it would expect, as long as it can find a PSR3 compatible logger.