Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Server Error for Wrong URL Ending
Post: Server Error for Wrong URL Ending

A 500 internal server error is returned when the user enters the wrong URL ending. Example: https://localhost/post/10001 where 10001 is not a valid post ID. URL's with valid post ID's work as expected...
990 Views
2 Replies
01-31-2024, 11:47 AM
mikestratton
    Thread: Architecture for Logging RESTful Requests/Responses
Post: Architecture for Logging RESTful Requests/Response...

Does anyone have recommendations for solid architecture that would allow me to log all controller HTTP Requests/Responses?
774 Views
2 Replies
10-11-2023, 11:15 AM
mikestratton
    Thread: Capturing IP Address & Session in Log File
Post: Capturing IP Address & Session in Log File

I have created a custom handler that allows me to write logs to a database. Now I need to use that same logger to capture the user's IP address and Session related data in the database, as well. Sugge...
804 Views
1 Replies
10-04-2023, 09:20 AM
mikestratton
    Thread: Storing Error Logs in Database
Post: RE: Storing Error Logs in Database

In the app/Config/Logger.php file, I added: public array $handlers = [         /*         * --------------------------------------------------------------------         * Custom Database Log Hand...
2,415 Views
3 Replies
10-03-2023, 10:27 AM
mikestratton
    Thread: Storing Error Logs in Database
Post: RE: Storing Error Logs in Database

I believe I found the answer. CodeIgniter\Log\Handlers\FileHandler is a core class, therefore, the method in FileHandler: public function handle() can be edited to store information in the database as...
2,415 Views
3 Replies
10-02-2023, 11:57 AM
mikestratton
    Thread: Storing Error Logs in Database
Post: Storing Error Logs in Database

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\codeignit...
2,415 Views
3 Replies
10-02-2023, 11:33 AM
mikestratton

Theme © iAndrew 2016 - Forum software by © MyBB