CodeIgniter Forums
ci4 log - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: ci4 log (/showthread.php?tid=86507)



ci4 log - devo - 01-28-2023

hii, i want to ask what is the best way to log an CRUD action in model or entity

ex update : the before change dan after change data just log the filed  has change and insert to log_action table

anyone have an idea for share with me??


RE: ci4 log - InsiteFX - 01-28-2023

This may point you in the right direction.

Simple CRUD CodeIgniter 4 Logger


RE: ci4 log - ikesela - 01-28-2023

change this variable value:

public $threshold = 3; // up to this level will be logged


RE: ci4 log - devo - 02-02-2023

(01-28-2023, 06:06 AM)InsiteFX Wrote: This may point you in the right direction.

Simple CRUD CodeIgniter 4 Logger

i mean is like this
what is the best way make logging action like that in ci4??


RE: ci4 log - kenjis - 02-02-2023

See https://github.com/tattersoftware/codeigniter4-audits


RE: ci4 log - devo - 02-02-2023

(02-02-2023, 02:12 AM)kenjis Wrote: See https://github.com/tattersoftware/codeigniter4-audits

oke, thanks