![]() |
I am trying to find the easiest path to storing log events in a database as opposed to in a log file. It seems like the only way this can be done is by extending the logger class here vendor\codeigniter4\framework\system\Log\Logger.php and then creating an additional method that is invoked when the "write to file" method is invoked, changing it with a "write to database" method.
I will need to extend the core functionality(creating an additional class), per the documentation: https://www.codeigniter.com/user_guide/e...re-classes Any recommendations or code sharing is greatly appreciated. |
Messages In This Thread |
Storing Error Logs in Database - by mikestratton - 10-02-2023, 11:33 AM
RE: Storing Error Logs in Database - by mikestratton - 10-02-2023, 11:57 AM
RE: Storing Error Logs in Database - by kenjis - 10-02-2023, 04:11 PM
RE: Storing Error Logs in Database - by mikestratton - 10-03-2023, 10:27 AM
|