Skip to content

Commit 83e44c6

Browse files
authored
Merge pull request #4067 from paulbalandan/logging
Remove discussion on LoggerAwareTrait
2 parents 5a8e757 + 0e1a813 commit 83e44c6

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

user_guide_src/source/general/logging.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,3 @@ like Composer. Next, you should modify ``/app/Config/Services.php`` to point the
152152
alias to your new class name.
153153

154154
Now, any call that is done through the ``log_message()`` function will use your library instead.
155-
156-
LoggerAware Trait
157-
=================
158-
159-
If you would like to implement your libraries in a framework-agnostic method, you can use
160-
the ``CodeIgniter\Log\LoggerAwareTrait`` which implements the ``setLogger()`` method for you.
161-
Then, when you use your library under different environments for frameworks, your library should
162-
still be able to log as it would expect, as long as it can find a PSR3 compatible logger.

0 commit comments

Comments
 (0)