Object Logging Library |
Hi all! I'd like to share my first completely original CodeIgniter4 Library. While my other libraries so far have been mostly ports from CI3, this one was conceived and implemented entirely from working in CI4. It's another lightweight library designed to "plug and play" so you don't have to worry about how to set it up or spend a lot of time configuring.
Presenting: Tatter/Audits - out-of-the-box object event logging for CodeIgniter 4 Basic usage: 1. Install with Composer: `> composer require tatter/audits` 2. Update the database: `> php spark migrate:latest -all` 3. Setup your models: PHP Code: class JobModel extends Model Audits will watch for insert, update, and delete calls (or whichever you include) on configured models and log it in the `audits` table: Code: | id | source | source_id | user_id | event | summary | created_at | I am eager for feedback, suggestions, and contributions - feel free to respond here or on GitHub (https://github.com/tattersoftware/codeigniter4-audits). Thanks for reading! |
Messages In This Thread |
Object Logging Library - by MGatner - 04-07-2019, 12:59 PM
RE: Object Logging Library - by Inc33 - 06-27-2020, 01:54 PM
RE: Object Logging Library - by MGatner - 06-29-2020, 04:17 PM
RE: Object Logging Library - by Inc33 - 06-30-2020, 02:48 AM
RE: Object Logging Library - by marcogmonteiro - 06-30-2020, 03:05 AM
RE: Object Logging Library - by MGatner - 06-30-2020, 06:36 PM
RE: Object Logging Library - by dgvirtual - 12-03-2021, 02:55 AM
RE: Object Logging Library - by Stack News - 05-22-2023, 06:10 AM
|