Skip to main content

Others

Logging

https://codeigniter.com/user_guide/general/logging.html

https://www.loggly.com/ultimate-guide/php-logging-basics

log_message('error', 'Some variable did not contain a value.');

LevelDescription
debugDetailed debug information.
infoInteresting events in your application, like a user logging in, logging SQL queries, etc.
noticeNormal, but significant events in your application.
warningExceptional occurrences that are not errors, like the use of deprecated APIs, poor use of an API, or other undesirable things that are not necessarily wrong.
errorRuntime errors that do not require immediate action but should typically be logged and monitored.
criticalCritical conditions, like an application component not available, or an unexpected exception.
alertAction must be taken immediately, like when an entire website is down, the database unavailable, etc.
emergencyThe system is unusable.

Swagger

Swagger Update In Codeigniter With Rest API || By Unknown Tech

https://www.youtube.com/watch?v=JnjlQBWvDAE&ab_channel=DevDrawer