Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

maxnag/Kohana-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Log for Kohana 3.*
===================

Overview
--------

For details information please see http://blog.nagaychenko.com/2012/01/27/логирование-работы-сайта-на-kohana/

Requirements
------------

Kohanaframework > 3.0

Installation
------------

1. `git submodule add git@github.com:maxnag/Kohana-log.git  modules/Kohana-log`
2. Enable line about module in your bootstrap file
3. Read more about module on http://blog.nagaychenko.com/2012/01/27/логирование-работы-сайта-на-kohana/
4. If need to storage lo into DB you need to run script

CREATE TABLE IF NOT EXISTS `logs` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `level` enum('EMERGENCY','CRITICAL','ERROR','WARNING','NOTICE','INFO','DEBUG') COLLATE utf8_unicode_ci DEFAULT 'INFO',
  `message` varchar(5000) COLLATE utf8_unicode_ci DEFAULT NULL,
  `client` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL,
  `uri` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `referer` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `agent` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `cookie` varchar(2000) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Логирование ошибок сайта' AUTO_INCREMENT=1 ;


Usage
-----

http://<your_domain>/log/dd.mm.yyyy (example - http://blog.nagaychenko.com/kohana/log/27.01.2012)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages