A DataLog for Kohana ORM models

A first draft of DataLog is up on Github now. It’s a Kohana module that works with ORM models for recording every change made to the data.

From the README:

This module is for keeping a log of changes made to ORM data. When added to an ORM model, it records who made what changes, when.

It stores actual values of the data (and usernames) rather than references to other parts of the database so that it can be as simple and robust as possible. This way it can be used with schema changes over time and still keep historical data.

There’s more to be figured out with this. The idea of tracking both the old and new values, for instance, may be inefficient. I’m working on Userguide pages, too — one of which will go over the idea of adding faux log messages, for things like file uploads, or modifications to related models that may not warrant a log in their own right (for example, ‘through’ tables where there is no model).

I wonder if it’s of any use to anyone other than me… hope so.