Skip to content

angelix/kohana-watchy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

# An Email Log Writer for Kohana.

Angelos Veglektsis <[email protected]> , <[email protected]>

Installation:
	- Copy the watchy folder to MODPATH (modules directory). example (/modules/watchy/classes/watchy.php)
	- Attach the writer to the log class AFTER Kohana::modules init , with the optionally limit of the levels of messages that will be written.
	
Example bootstrap.php



//This is the default log writer
Kohana::$config->attach(new Config_File); 

Kohana::modules(array(
	'auth'       => MODPATH.'auth',       // Basic authentication
	'cache'      => MODPATH.'cache',      // Caching with multiple backends
	// 'codebench'  => MODPATH.'codebench',  // Benchmarking tool
	'database'   => MODPATH.'database',   // Database access
	// 'image'      => MODPATH.'image',      // Image manipulation
	'orm'        => MODPATH.'orm',        // Object Relationship Mapping
	// 'unittest'   => MODPATH.'unittest',   // Unit testing
	// 'userguide'  => MODPATH.'userguide',  // User guide and API documentation
	'watchy'        => MODPATH.'watchy',        // Watchy Log Writer
	));

//Attach watchy writer after the modules path inclues. Only write ERROR's and above.
Kohana::$log->attach(new Log_Watchy('Rich Project' , '[email protected]' , 'Kohana Watchy <[email protected]>') , Log::ERROR);

About

Email Log Writer for Kohana

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages