diara/audit

This package is abandoned and no longer maintained. No replacement package was suggested.

A Kohana module for logging application events for auditing purposes.

Installs: 23

Dependents: 0

Suggesters: 0

Security: 0

Type:kohana-module

2.1.1 2012-11-17 19:03 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:22:19 UTC


README

  • Developer: A. Roots
  • Created: May 2012
  • Copyright: Diara OÜ

Kohana Audit is a Kohana 3.2 module for logging application events for auditing purposes.

Install

  1. Clone the repository and enable the module in application/bootstrap.php.
  2. Execute schema.sql in your database
  3. The User class must implement the singleton pattern - User::current() must return Auth::instance()->get_user()

Usage example

:::php

class Controller_Test extends Controller {
    public function action_index() {
        Audit::add(Audit::CREATE, 'Visited the test controller');
    }
}

Features

  • Log types for different activities
  • I18n support for log messages

Dependencies

  • Kohana 3.2
  • Database module
  • ORM module
  • Auth module

Default view uses Twitter Bootstrap v2 css elements.